Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(212)

Unified Diff: components/handoff/handoff_utility.mm

Issue 1000723003: handoff: Fix the origin so that it correctly reflects the sender. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Comments from avi. Created 5 years, 9 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
Index: components/handoff/handoff_utility.mm
diff --git a/components/handoff/handoff_utility.mm b/components/handoff/handoff_utility.mm
index ba4c6efa0187e282094bae27a774a04bea724a5c..de20e6964d763bec2310937c9b9eeec81be9962c 100644
--- a/components/handoff/handoff_utility.mm
+++ b/components/handoff/handoff_utility.mm
@@ -21,4 +21,15 @@ Origin OriginFromString(NSString* string) {
return ORIGIN_UNKNOWN;
}
+NSString* StringFromOrigin(Origin origin) {
+ switch (origin) {
+ case ORIGIN_IOS:
+ return kOriginiOS;
+ case ORIGIN_MAC:
+ return kOriginMac;
+ default:
+ return nil;
+ }
+}
+
} // namespace handoff
« components/handoff/handoff_manager.mm ('K') | « components/handoff/handoff_utility.h ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698