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

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

Issue 2724723002: [WebAPKs]: Reduce the parameters of ShortcutHelper::AddToLauncherWithSkBitmap() (Closed)
Patch Set: Created 3 years, 10 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 7a30fd3f0f8bdf2f15ef6fbd464371c70aed0343..64a4a2b929c6ac450dd9ab553489b8da051fc1c3 100644
--- a/chrome/browser/android/shortcut_helper.h
+++ b/chrome/browser/android/shortcut_helper.h
@@ -36,12 +36,9 @@ class ShortcutHelper {
// added depends on the properties in |info|. Calls one of
// InstallWebApkInBackgroundWithSkBitmap, AddWebappInBackgroundWithSkBitmap,
// or AddShortcutInBackgroundWithSkBitmap.
- static void AddToLauncherWithSkBitmap(
- content::BrowserContext* browser_context,
- const ShortcutInfo& info,
- const std::string& webapp_id,
- const SkBitmap& icon_bitmap,
- const base::Closure& splash_image_callback);
+ static void AddToLauncherWithSkBitmap(content::WebContents* web_contents,
+ const ShortcutInfo& info,
+ const SkBitmap& icon_bitmap);
// Installs WebAPK and adds shortcut to the launcher.
static void InstallWebApkWithSkBitmap(

Powered by Google App Engine
This is Rietveld 408576698