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

Unified Diff: chrome/browser/extensions/api/identity/gaia_web_auth_flow.cc

Issue 136723009: Move UbertokenFetcher from //chrome to //google_apis. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Rebase Created 6 years, 11 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/api/identity/gaia_web_auth_flow.cc
diff --git a/chrome/browser/extensions/api/identity/gaia_web_auth_flow.cc b/chrome/browser/extensions/api/identity/gaia_web_auth_flow.cc
index 31c4b75bb316e90ca96731f20d3c2ea924b9933c..2c63a19a53caea5a82f76fbf91ce771dd3f6f46d 100644
--- a/chrome/browser/extensions/api/identity/gaia_web_auth_flow.cc
+++ b/chrome/browser/extensions/api/identity/gaia_web_auth_flow.cc
@@ -8,6 +8,7 @@
#include "base/strings/string_split.h"
#include "base/strings/string_util.h"
#include "base/strings/stringprintf.h"
+#include "chrome/browser/profiles/profile.h"
#include "chrome/browser/signin/profile_oauth2_token_service.h"
#include "chrome/browser/signin/profile_oauth2_token_service_factory.h"
#include "google_apis/gaia/gaia_urls.h"
@@ -58,7 +59,9 @@ GaiaWebAuthFlow::~GaiaWebAuthFlow() {
void GaiaWebAuthFlow::Start() {
ProfileOAuth2TokenService* token_service =
ProfileOAuth2TokenServiceFactory::GetForProfile(profile_);
- ubertoken_fetcher_.reset(new UbertokenFetcher(profile_, this));
+ ubertoken_fetcher_.reset(new UbertokenFetcher(token_service,
+ this,
+ profile_->GetRequestContext()));
ubertoken_fetcher_->StartFetchingToken(token_service->GetPrimaryAccountId());
}
« no previous file with comments | « chrome/browser/extensions/api/identity/gaia_web_auth_flow.h ('k') | chrome/browser/signin/google_auto_login_helper.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698