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

Unified Diff: chrome/browser/extensions/signin/scoped_gaia_auth_extension.cc

Issue 179243002: Change ProfileKeyedAPIFactory to build instances with BrowserContext instead of Profile. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: locationbarview Created 6 years, 10 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/extensions/signin/scoped_gaia_auth_extension.cc
diff --git a/chrome/browser/extensions/signin/scoped_gaia_auth_extension.cc b/chrome/browser/extensions/signin/scoped_gaia_auth_extension.cc
index 4c5f343bf1ddb268c71e40c97adc475e6be598cb..49d6fa2be8503e4b9936a46d654461fbfcf9db15 100644
--- a/chrome/browser/extensions/signin/scoped_gaia_auth_extension.cc
+++ b/chrome/browser/extensions/signin/scoped_gaia_auth_extension.cc
@@ -5,18 +5,20 @@
#include "chrome/browser/extensions/signin/scoped_gaia_auth_extension.h"
#include "chrome/browser/extensions/signin/gaia_auth_extension_loader.h"
+#include "content/public/browser/browser_context.h"
-ScopedGaiaAuthExtension::ScopedGaiaAuthExtension(Profile* profile)
- : profile_(profile) {
+ScopedGaiaAuthExtension::ScopedGaiaAuthExtension(
+ content::BrowserContext* context)
+ : browser_context_(context) {
extensions::GaiaAuthExtensionLoader* loader =
- extensions::GaiaAuthExtensionLoader::Get(profile_);
+ extensions::GaiaAuthExtensionLoader::Get(browser_context_);
if (loader)
loader->LoadIfNeeded();
}
ScopedGaiaAuthExtension::~ScopedGaiaAuthExtension() {
extensions::GaiaAuthExtensionLoader* loader =
- extensions::GaiaAuthExtensionLoader::Get(profile_);
+ extensions::GaiaAuthExtensionLoader::Get(browser_context_);
if (loader)
loader->UnloadIfNeeded();
}

Powered by Google App Engine
This is Rietveld 408576698