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

Unified Diff: chrome/browser/signin/mutable_profile_oauth2_token_service_unittest.cc

Issue 130813003: Create signin component and componentize TokenWebData. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: 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/signin/mutable_profile_oauth2_token_service_unittest.cc
diff --git a/chrome/browser/signin/mutable_profile_oauth2_token_service_unittest.cc b/chrome/browser/signin/mutable_profile_oauth2_token_service_unittest.cc
index 20ea9654c93fe3dcf0751660ceb2e8c8b3e1b95a..9d41a2e674a71272226ef6def1c18b95a335fa13 100644
--- a/chrome/browser/signin/mutable_profile_oauth2_token_service_unittest.cc
+++ b/chrome/browser/signin/mutable_profile_oauth2_token_service_unittest.cc
@@ -9,8 +9,9 @@
#include "chrome/browser/signin/signin_account_id_helper.h"
#include "chrome/browser/signin/signin_manager.h"
#include "chrome/browser/signin/signin_manager_factory.h"
-#include "chrome/browser/webdata/token_web_data.h"
+#include "chrome/browser/webdata/web_data_service_factory.h"
#include "chrome/test/base/testing_profile.h"
+#include "components/signin/core/webdata/token_web_data.h"
#include "content/public/test/test_browser_thread_bundle.h"
#include "google_apis/gaia/gaia_constants.h"
#include "google_apis/gaia/gaia_urls.h"
@@ -76,7 +77,8 @@ class MutableProfileOAuth2TokenServiceTest :
void AddAuthTokenManually(const std::string& service,
const std::string& value) {
scoped_refptr<TokenWebData> token_web_data =
- TokenWebData::FromBrowserContext(profile());
+ WebDataServiceFactory::GetTokenWebDataForProfile(
+ profile(), Profile::EXPLICIT_ACCESS);
if (token_web_data.get())
token_web_data->SetTokenForService(service, value);
}

Powered by Google App Engine
This is Rietveld 408576698