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

Side by Side Diff: chrome/browser/extensions/signin/gaia_auth_extension_loader.cc

Issue 2733283002: Require explicit selection of traits for LazyInstance (Closed)
Patch Set: l10n again Created 3 years, 9 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 unified diff | Download patch
OLDNEW
1 // Copyright 2013 The Chromium Authors. All rights reserved. 1 // Copyright 2013 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 #include "chrome/browser/extensions/signin/gaia_auth_extension_loader.h" 5 #include "chrome/browser/extensions/signin/gaia_auth_extension_loader.h"
6 6
7 #include "base/command_line.h" 7 #include "base/command_line.h"
8 #include "base/files/file_path.h" 8 #include "base/files/file_path.h"
9 #include "base/lazy_instance.h" 9 #include "base/lazy_instance.h"
10 #include "base/logging.h" 10 #include "base/logging.h"
(...skipping 90 matching lines...) Expand 10 before | Expand all | Expand 10 after
101 load_count_ = 0; 101 load_count_ = 0;
102 } 102 }
103 } 103 }
104 104
105 // static 105 // static
106 GaiaAuthExtensionLoader* GaiaAuthExtensionLoader::Get(BrowserContext* context) { 106 GaiaAuthExtensionLoader* GaiaAuthExtensionLoader::Get(BrowserContext* context) {
107 return BrowserContextKeyedAPIFactory<GaiaAuthExtensionLoader>::Get(context); 107 return BrowserContextKeyedAPIFactory<GaiaAuthExtensionLoader>::Get(context);
108 } 108 }
109 109
110 static base::LazyInstance< 110 static base::LazyInstance<
111 BrowserContextKeyedAPIFactory<GaiaAuthExtensionLoader> > g_factory = 111 BrowserContextKeyedAPIFactory<GaiaAuthExtensionLoader>>::DestructorAtExit
112 LAZY_INSTANCE_INITIALIZER; 112 g_factory = LAZY_INSTANCE_INITIALIZER;
113 113
114 // static 114 // static
115 BrowserContextKeyedAPIFactory<GaiaAuthExtensionLoader>* 115 BrowserContextKeyedAPIFactory<GaiaAuthExtensionLoader>*
116 GaiaAuthExtensionLoader::GetFactoryInstance() { 116 GaiaAuthExtensionLoader::GetFactoryInstance() {
117 return g_factory.Pointer(); 117 return g_factory.Pointer();
118 } 118 }
119 119
120 } // namespace extensions 120 } // namespace extensions
OLDNEW
« no previous file with comments | « chrome/browser/extensions/plugin_manager.cc ('k') | chrome/browser/feedback/feedback_profile_observer.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698