Index: chrome/browser/android/shortcut_info.h |
diff --git a/chrome/browser/android/shortcut_info.h b/chrome/browser/android/shortcut_info.h |
index e641c0b6c9b8f7f839376ce98f3b2e724049e8a5..4371ae340ea227d86f8834b1bbc9afa62331e765 100644 |
--- a/chrome/browser/android/shortcut_info.h |
+++ b/chrome/browser/android/shortcut_info.h |
@@ -12,16 +12,27 @@ |
// Information needed to create a shortcut via ShortcutHelper. |
struct ShortcutInfo { |
+ enum Source { |
Ilya Sherman
2015/07/03 18:11:45
Please document that this is used to back an UMA h
dominickn
2015/07/05 23:33:17
Done.
|
+ SOURCE_UNKNOWN = 0, |
+ SOURCE_ADD_TO_HOMESCREEN = 1, |
+ SOURCE_APP_BANNER = 2, |
+ SOURCE_COUNT = 3 |
+ }; |
+ |
ShortcutInfo(); |
explicit ShortcutInfo(const GURL& shortcut_url); |
// Updates the info based on the given |manifest|. |
void UpdateFromManifest(const content::Manifest& manifest); |
+ // Updates the source of the shortcut. |
+ void UpdateSource(const Source source); |
+ |
GURL url; |
base::string16 title; |
content::Manifest::DisplayMode display; |
blink::WebScreenOrientationLockType orientation; |
+ Source source; |
}; |
#endif // CHROME_BROWSER_ANDROID_SHORTCUT_INFO_H_ |