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

Unified Diff: chrome/browser/android/shortcut_helper.h

Issue 38523002: Using largest favicon for shortcut when possible. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Sync Created 7 years, 2 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: chrome/browser/android/shortcut_helper.h
diff --git a/chrome/browser/android/shortcut_helper.h b/chrome/browser/android/shortcut_helper.h
index 2fa2735d93bfcfeb8287c06a3cc372556a7ee903..323b409327a040e2dd8c57ebe717f9dbf72ff941 100644
--- a/chrome/browser/android/shortcut_helper.h
+++ b/chrome/browser/android/shortcut_helper.h
@@ -43,7 +43,8 @@ class ShortcutBuilder : public content::WebContentsObserver {
};
explicit ShortcutBuilder(content::WebContents* web_contents,
- const string16& title);
+ const string16& title,
+ int launcher_large_icon_size);
virtual ~ShortcutBuilder() {}
void OnDidRetrieveWebappInformation(bool success,
@@ -63,6 +64,7 @@ class ShortcutBuilder : public content::WebContentsObserver {
GURL url_;
string16 title_;
+ int launcher_large_icon_size_;
ShortcutType shortcut_type_;
CancelableTaskTracker cancelable_task_tracker_;
@@ -74,7 +76,8 @@ class ShortcutHelper {
// Adds a shortcut to the current URL to the Android home screen, firing
// background tasks to pull all the data required.
static void AddShortcut(content::WebContents* web_contents,
- const string16& title);
+ const string16& title,
+ int launcher_larger_icon_size);
// Adds a shortcut to the launcher. Must be called from a WorkerPool task.
static void AddShortcutInBackground(

Powered by Google App Engine
This is Rietveld 408576698