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

Unified Diff: chrome/browser/browser_process.h

Issue 12647008: Refactor OAuth2TokenService to have profile- and device-based implementations. (Closed) Base URL: http://git.chromium.org/chromium/src.git@master
Patch Set: Moved DeviceOAuth2TokenService factory method to g_browser_process Created 7 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « no previous file | chrome/browser/browser_process_impl.h » ('j') | chrome/browser/browser_process_impl.cc » ('J')
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/browser/browser_process.h
diff --git a/chrome/browser/browser_process.h b/chrome/browser/browser_process.h
index c8286bc81fb3a039139f6c513b23c6e371863aa7..2c7fcca7643a858ded8f97b08e06318f03b69624 100644
--- a/chrome/browser/browser_process.h
+++ b/chrome/browser/browser_process.h
@@ -46,6 +46,7 @@ class MediaFileSystemRegistry;
#if defined(OS_CHROMEOS)
namespace chromeos {
+class DeviceOAuth2TokenService;
class OomPriorityManager;
}
#endif // defined(OS_CHROMEOS)
@@ -113,6 +114,11 @@ class BrowserProcess {
#if defined(OS_CHROMEOS)
// Returns the out-of-memory priority manager.
virtual chromeos::OomPriorityManager* oom_priority_manager() = 0;
+
+ // Returns the OAuth2TokenService instance for the device-level robot account
+ // (available on enterprise-enrolled devices). Returns NULL if the IO thread
+ // is not available.
+ virtual chromeos::DeviceOAuth2TokenService* device_oauth2_token_service() = 0;
#endif // defined(OS_CHROMEOS)
virtual extensions::EventRouterForwarder*
« no previous file with comments | « no previous file | chrome/browser/browser_process_impl.h » ('j') | chrome/browser/browser_process_impl.cc » ('J')

Powered by Google App Engine
This is Rietveld 408576698