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

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

Issue 2242473002: Add an about:flag to control WebApk enablement. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: nbuild ch Created 4 years, 4 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
« no previous file with comments | « chrome/browser/about_flags.cc ('k') | chrome/browser/notifications/notification_platform_bridge_android.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/browser/android/shortcut_helper.cc
diff --git a/chrome/browser/android/shortcut_helper.cc b/chrome/browser/android/shortcut_helper.cc
index 6ac62f1db48b442f74eb293007381e5a867f7637..c30ff516b35a0fde359c6d43e5967e9f94c937d4 100644
--- a/chrome/browser/android/shortcut_helper.cc
+++ b/chrome/browser/android/shortcut_helper.cc
@@ -72,8 +72,8 @@ void ShortcutHelper::AddToLauncherWithSkBitmap(
const base::Closure& splash_image_callback) {
if (info.display == blink::WebDisplayModeStandalone ||
info.display == blink::WebDisplayModeFullscreen) {
- if (base::CommandLine::ForCurrentProcess()->HasSwitch(
- switches::kEnableWebApk)) {
+ JNIEnv* env = base::android::AttachCurrentThread();
+ if (Java_ShortcutHelper_areWebApksEnabled(env)) {
InstallWebApkWithSkBitmap(browser_context, info, icon_bitmap);
return;
}
« no previous file with comments | « chrome/browser/about_flags.cc ('k') | chrome/browser/notifications/notification_platform_bridge_android.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698