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

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: Resolved build error in mac 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..d43526e0ab9ea7163ef33015109e6a0bc10e43c4 100644
--- a/chrome/browser/plugins/plugins_resource_service.cc
+++ b/chrome/browser/plugins/plugins_resource_service.cc
@@ -19,16 +19,10 @@ const int kStartResourceFetchDelayMs = 60 * 1000;
// Delay between calls to update the cache 1 day and 2 minutes in testing mode.
const int kCacheUpdateDelayMs = 24 * 60 * 60 * 1000;
-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)
@@ -41,14 +35,7 @@ GURL GetPluginsServerURL() {
#error Unknown platform
#endif
- std::string test_url =
- base::CommandLine::ForCurrentProcess()->GetSwitchValueASCII(
- switches::kPluginsMetadataServerURL);
- return GURL(IsTest() ? test_url : kPluginsServerUrl + filename);
-}
-
-int GetCacheUpdateDelay() {
- return IsTest() ? kTestCacheUpdateDelayMs : kCacheUpdateDelayMs;
+ return GURL(kPluginsServerUrl + filename);
}
} // namespace
@@ -59,7 +46,7 @@ PluginsResourceService::PluginsResourceService(PrefService* local_state)
false,
prefs::kPluginsResourceCacheUpdate,
kStartResourceFetchDelayMs,
- GetCacheUpdateDelay()) {
+ kCacheUpdateDelayMs) {
}
void PluginsResourceService::Init() {
« 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