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

Unified Diff: chrome/browser/component_updater/cld_component_installer.cc

Issue 285293004: Allow browser tests to run with dynamic CLD data. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@cld_uma
Patch Set: Created 6 years, 7 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/component_updater/cld_component_installer.cc
diff --git a/chrome/browser/component_updater/cld_component_installer.cc b/chrome/browser/component_updater/cld_component_installer.cc
index 195f25301eb03d615b0c94c1fe6e5a4b666ad9db..cc89d6bc33ad4dafbe74bf08da1ae10478fa1daa 100644
--- a/chrome/browser/component_updater/cld_component_installer.cc
+++ b/chrome/browser/component_updater/cld_component_installer.cc
@@ -29,8 +29,8 @@ namespace {
// make the path available to other parts of the system such as the
// translation libraries. We create a global to hold onto the path, and a
// lock to guard it. See GetLatestCldDataFile(...) for more info.
-base::LazyInstance<base::Lock> cld_file_lock = LAZY_INSTANCE_INITIALIZER;
-base::LazyInstance<base::FilePath> cld_file = LAZY_INSTANCE_INITIALIZER;
+static base::LazyInstance<base::Lock> cld_file_lock = LAZY_INSTANCE_INITIALIZER;
Sorin Jianu 2014/05/15 17:16:13 Is there a reason we have the static keyword here?
Andrew Hayden (chromium.org) 2014/05/16 17:53:20 Done.
+static base::LazyInstance<base::FilePath> cld_file = LAZY_INSTANCE_INITIALIZER;
}

Powered by Google App Engine
This is Rietveld 408576698