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

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

Issue 178193030: Rename ProfileKeyedAPI to BrowserContextKeyedAPI and GetProfile to Get. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 6 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 | Annotate | Revision Log
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 <string> 7 #include <string>
8 8
9 #include "base/command_line.h" 9 #include "base/command_line.h"
10 #include "base/files/file_path.h" 10 #include "base/files/file_path.h"
(...skipping 97 matching lines...) Expand 10 before | Expand all | Expand 10 after
108 108
109 void GaiaAuthExtensionLoader::Shutdown() { 109 void GaiaAuthExtensionLoader::Shutdown() {
110 if (load_count_ > 0) { 110 if (load_count_ > 0) {
111 UnloadGaiaAuthExtension(browser_context_); 111 UnloadGaiaAuthExtension(browser_context_);
112 load_count_ = 0; 112 load_count_ = 0;
113 } 113 }
114 } 114 }
115 115
116 // static 116 // static
117 GaiaAuthExtensionLoader* GaiaAuthExtensionLoader::Get(BrowserContext* context) { 117 GaiaAuthExtensionLoader* GaiaAuthExtensionLoader::Get(BrowserContext* context) {
118 return ProfileKeyedAPIFactory<GaiaAuthExtensionLoader>::GetForProfile( 118 return BrowserContextKeyedAPIFactory<GaiaAuthExtensionLoader>::Get(context);
119 context);
120 } 119 }
121 120
122 static base::LazyInstance<ProfileKeyedAPIFactory<GaiaAuthExtensionLoader> > 121 static base::LazyInstance<
123 g_factory = LAZY_INSTANCE_INITIALIZER; 122 BrowserContextKeyedAPIFactory<GaiaAuthExtensionLoader> > g_factory =
123 LAZY_INSTANCE_INITIALIZER;
124 124
125 // static 125 // static
126 ProfileKeyedAPIFactory<GaiaAuthExtensionLoader>* 126 BrowserContextKeyedAPIFactory<GaiaAuthExtensionLoader>*
127 GaiaAuthExtensionLoader::GetFactoryInstance() { 127 GaiaAuthExtensionLoader::GetFactoryInstance() {
128 return g_factory.Pointer(); 128 return g_factory.Pointer();
129 } 129 }
130 130
131 } // namespace extensions 131 } // namespace extensions
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698