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

Unified Diff: chrome/browser/chromeos/settings/device_oauth2_token_service_factory.cc

Issue 1143323005: Refactor AO2TS to make it easier to componentize. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Address final comments Created 5 years, 6 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/chromeos/settings/device_oauth2_token_service_factory.cc
diff --git a/chrome/browser/chromeos/settings/device_oauth2_token_service_factory.cc b/chrome/browser/chromeos/settings/device_oauth2_token_service_factory.cc
index 65e319c61f4d1db5ca0975100306889d870b21b3..5d6ae0bc38d6b4028b7181e15f55dc26343e1e35 100644
--- a/chrome/browser/chromeos/settings/device_oauth2_token_service_factory.cc
+++ b/chrome/browser/chromeos/settings/device_oauth2_token_service_factory.cc
@@ -6,6 +6,7 @@
#include "chrome/browser/browser_process.h"
#include "chrome/browser/chromeos/settings/device_oauth2_token_service.h"
+#include "chrome/browser/chromeos/settings/device_oauth2_token_service_delegate.h"
#include "chrome/browser/chromeos/settings/token_encryptor.h"
#include "chromeos/cryptohome/system_salt_getter.h"
#include "content/public/browser/browser_thread.h"
@@ -28,9 +29,10 @@ DeviceOAuth2TokenService* DeviceOAuth2TokenServiceFactory::Get() {
void DeviceOAuth2TokenServiceFactory::Initialize() {
DCHECK_CURRENTLY_ON(content::BrowserThread::UI);
DCHECK(!g_device_oauth2_token_service_);
- g_device_oauth2_token_service_ = new DeviceOAuth2TokenService(
- g_browser_process->system_request_context(),
- g_browser_process->local_state());
+ g_device_oauth2_token_service_ =
+ new DeviceOAuth2TokenService(new DeviceOAuth2TokenServiceDelegate(
+ g_browser_process->system_request_context(),
+ g_browser_process->local_state()));
}
// static

Powered by Google App Engine
This is Rietveld 408576698