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

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: review comments 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..4dcbcb131b3a3bded4415c27aa9ac6b57b14e370 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 matche the launcher requirements, then returns the
+ // new icon. It might generate an entirely new icon, in which case,
+ // |is_generated| will be set to |true|.
+ static SkBitmap FinalizeLauncherIcon(const SkBitmap& icon,
+ const GURL& url,
+ bool* is_generated);
+
private:
ShortcutHelper() = delete;
~ShortcutHelper() = delete;

Powered by Google App Engine
This is Rietveld 408576698