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

Unified Diff: chrome/browser/plugins/plugins_resource_service.cc

Issue 833323002: Remove --plugins-metadata-server-url (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 5 years, 11 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 | « no previous file | chrome/common/chrome_switches.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/browser/plugins/plugins_resource_service.cc
diff --git a/chrome/browser/plugins/plugins_resource_service.cc b/chrome/browser/plugins/plugins_resource_service.cc
index e1ac91a431c5122272eb3fd00a5c37cc50203232..0b99ce3524599109f65cd462d74777a4f3c7dc25 100644
--- a/chrome/browser/plugins/plugins_resource_service.cc
+++ b/chrome/browser/plugins/plugins_resource_service.cc
@@ -24,11 +24,6 @@ const int kTestCacheUpdateDelayMs = 2 * 60 * 1000;
const char kPluginsServerUrl[] =
"https://www.gstatic.com/chrome/config/plugins_2/";
-bool IsTest() {
- return base::CommandLine::ForCurrentProcess()->HasSwitch(
- switches::kPluginsMetadataServerURL);
-}
-
GURL GetPluginsServerURL() {
std::string filename;
#if defined(OS_WIN)
@@ -44,11 +39,11 @@ GURL GetPluginsServerURL() {
std::string test_url =
base::CommandLine::ForCurrentProcess()->GetSwitchValueASCII(
switches::kPluginsMetadataServerURL);
Bernhard Bauer 2015/01/06 09:26:22 Heh, I think you built this change on a platform t
MRV 2015/01/06 09:56:27 Done.
- return GURL(IsTest() ? test_url : kPluginsServerUrl + filename);
+ return GURL(kPluginsServerUrl + filename);
}
int GetCacheUpdateDelay() {
Bernhard Bauer 2015/01/06 09:26:22 This can be inlined now.
MRV 2015/01/06 09:56:27 Done.
Bernhard Bauer 2015/01/06 09:59:26 I meant inlined as a transformation of the source
MRV 2015/01/06 11:07:11 Done.
- return IsTest() ? kTestCacheUpdateDelayMs : kCacheUpdateDelayMs;
+ return kCacheUpdateDelayMs;
}
} // namespace
« no previous file with comments | « no previous file | chrome/common/chrome_switches.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698