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

Unified Diff: chrome/browser/chrome_to_mobile_service.cc

Issue 10885024: Integrate Chrome To Mobile with Action Box UI. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Disable ShowChromeToMobileBubble on GTK. Created 8 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
Index: chrome/browser/chrome_to_mobile_service.cc
diff --git a/chrome/browser/chrome_to_mobile_service.cc b/chrome/browser/chrome_to_mobile_service.cc
index 4e812021da3d5ca0ef823be16ce0f0db5efdacbe..b8cd66baea6e842840e2d76f993eb90f77341549 100644
--- a/chrome/browser/chrome_to_mobile_service.cc
+++ b/chrome/browser/chrome_to_mobile_service.cc
@@ -48,9 +48,6 @@
namespace {
-// The default enabled/disabled state of the Chrome To Mobile feature.
-const bool kChromeToMobileEnabled = true;
-
// The maximum number of retries for the URLFetcher requests.
const size_t kMaxRetries = 1;
@@ -165,15 +162,9 @@ ChromeToMobileService::JobData::~JobData() {}
// static
bool ChromeToMobileService::IsChromeToMobileEnabled() {
- CommandLine* command_line = CommandLine::ForCurrentProcess();
-
- if (command_line->HasSwitch(switches::kDisableChromeToMobile))
- return false;
-
- if (command_line->HasSwitch(switches::kEnableChromeToMobile))
- return true;
-
- return kChromeToMobileEnabled;
+ // Chrome To Mobile is currently gated on the Action Box UI.
+ return CommandLine::ForCurrentProcess()->HasSwitch(
+ switches::kEnableActionBox);
}
// static

Powered by Google App Engine
This is Rietveld 408576698