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

Unified Diff: chrome/browser/extensions/extension_omnibox_api.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. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
Index: chrome/browser/extensions/extension_omnibox_api.cc
diff --git a/chrome/browser/extensions/extension_omnibox_api.cc b/chrome/browser/extensions/extension_omnibox_api.cc
index 1590927bb6c6b50c69e639b6dedbb10e74c970f5..300333ec82040d492362f36850d180a511606a4d 100644
--- a/chrome/browser/extensions/extension_omnibox_api.cc
+++ b/chrome/browser/extensions/extension_omnibox_api.cc
@@ -41,7 +41,8 @@ const char kDescriptionStylesOffset[] = "offset";
const char kDescriptionStylesLength[] = "length";
static base::LazyInstance<PropertyAccessor<ExtensionOmniboxSuggestion> >
- g_extension_omnibox_suggestion_property_accessor(base::LINKER_INITIALIZED);
+ g_extension_omnibox_suggestion_property_accessor =
+ LAZY_INSTANCE_INITIALIZER;
PropertyAccessor<ExtensionOmniboxSuggestion>& GetPropertyAccessor() {
return g_extension_omnibox_suggestion_property_accessor.Get();
« no previous file with comments | « chrome/browser/extensions/crx_installer.cc ('k') | chrome/browser/extensions/extension_webnavigation_api.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698