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

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

Issue 1420743002: Web app: set a flag on the Intent if the icon was generated by Chromium. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@splashscreen-even-more-tests
Patch Set: locally tested Created 5 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 12e47931b41aa571f7a0e4904815b429a373982d..88ea96f713ab704a79f213352afa07c7d1a4b5b5 100644
--- a/chrome/browser/android/shortcut_helper.h
+++ b/chrome/browser/android/shortcut_helper.h
@@ -53,6 +53,13 @@ class ShortcutHelper {
static void StoreWebappData(const std::string& webapp_id,
const SkBitmap& splash_image);
+ // Modify the given icon to matches the launcher requirements and returns the
gone 2015/10/21 23:35:57 to match requirements, then returns
mlamouri (slow - plz ping) 2015/10/22 14:37:06 Done.
+ // new icon. It might generate an entirely new icon, in which case,
+ // |generated| will be set to |true|.
+ static SkBitmap FinalizeLauncherIcon(const SkBitmap& icon,
+ const GURL& url,
+ bool* generated);
+
private:
ShortcutHelper() = delete;
~ShortcutHelper() = delete;

Powered by Google App Engine
This is Rietveld 408576698