Chromium Code Reviews

Unified Diff: chrome/renderer/safe_browsing/phishing_classifier_delegate.cc

Issue 8491043: Allow linker initialization of lazy instance (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: willchan comments + rebase Created 9 years, 1 month ago
Use n/p to move between diff chunks; N/P to move between comments.
Jump to:
View side-by-side diff with in-line comments
Index: chrome/renderer/safe_browsing/phishing_classifier_delegate.cc
diff --git a/chrome/renderer/safe_browsing/phishing_classifier_delegate.cc b/chrome/renderer/safe_browsing/phishing_classifier_delegate.cc
index 8d182841d9f911a436515d108379e1d1a12f4ae9..9a224fa99db1a601b4372b1dc5a747277726c8f1 100644
--- a/chrome/renderer/safe_browsing/phishing_classifier_delegate.cc
+++ b/chrome/renderer/safe_browsing/phishing_classifier_delegate.cc
@@ -37,10 +37,10 @@ static GURL StripRef(const GURL& url) {
typedef std::set<PhishingClassifierDelegate*> PhishingClassifierDelegates;
static base::LazyInstance<PhishingClassifierDelegates>
- g_delegates(base::LINKER_INITIALIZED);
+ g_delegates = LAZY_INSTANCE_INITIALIZER;
static base::LazyInstance<scoped_ptr<const safe_browsing::Scorer> >
- g_phishing_scorer(base::LINKER_INITIALIZED);
+ g_phishing_scorer = LAZY_INSTANCE_INITIALIZER;
// static
PhishingClassifierFilter* PhishingClassifierFilter::Create() {
« no previous file with comments | « chrome/renderer/extensions/schema_generated_bindings.cc ('k') | chrome/service/cloud_print/cloud_print_token_store.cc » ('j') | no next file with comments »

Powered by Google App Engine