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

Unified Diff: components/handoff/handoff_utility.h

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.h
diff --git a/components/handoff/handoff_utility.h b/components/handoff/handoff_utility.h
index 3aa3504e690a1863fa9910d1795a4d7e7a020416..92ccc5d035a321c1c5da9c40829609b2d9905255 100644
--- a/components/handoff/handoff_utility.h
+++ b/components/handoff/handoff_utility.h
@@ -35,6 +35,9 @@ enum Origin {
// Returns ORIGIN_UNKNOWN if |string| is nil or unrecognized.
Origin OriginFromString(NSString* string);
+// Returns nil if |origin| is not ORIGIN_IOS or ORIGIN_MAC.
+NSString* StringFromOrigin(Origin origin);
+
} // namespace handoff
#endif // COMPONENTS_HANDOFF_HANDOFF_UTILITY_H_

Powered by Google App Engine
This is Rietveld 408576698