blob: 5dab760a7939b57b5c5a4982eb7d56158ecd8f76 [file] [log] [blame]
// Copyright 2014 The Chromium Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
#include "chrome/browser/mac/handoff_utility.h"
namespace handoff {
NSString* const kOriginKey = @"kOriginKey";
NSString* const kOriginiOS = @"kOriginiOS";
NSString* const kOriginMac = @"kOriginMac";
Origin OriginFromString(NSString* string) {
if ([string isEqualToString:kOriginiOS])
return ORIGIN_IOS;
if ([string isEqualToString:kOriginMac])
return ORIGIN_MAC;
return ORIGIN_UNKNOWN;
}
} // namespace handoff