Index: chrome/browser/chromeos/gdata/drive_system_service.h |
diff --git a/chrome/browser/chromeos/gdata/drive_system_service.h b/chrome/browser/chromeos/gdata/drive_system_service.h |
index cb5ed7f6d6cd7c9d60467d67111d0b636172017b..3ee900c47171da5b0c2a80970bc38de490df2009 100644 |
--- a/chrome/browser/chromeos/gdata/drive_system_service.h |
+++ b/chrome/browser/chromeos/gdata/drive_system_service.h |
@@ -52,6 +52,10 @@ class DriveSystemService : public ProfileKeyedService { |
// ProfileKeyedService override: |
virtual void Shutdown() OVERRIDE; |
+ // Returns true if Drive is enabled for the specified profile. |
+ // Must be called on UI thread. |
+ static bool IsDriveEnabled(Profile* profile); |
+ |
private: |
explicit DriveSystemService(Profile* profile); |
virtual ~DriveSystemService(); |
@@ -75,6 +79,11 @@ class DriveSystemService : public ProfileKeyedService { |
// the cache initialization is successful. |
void OnCacheInitialized(bool success); |
+ // Disables Drive for the specified profile. Used to disable Drive when |
+ // needed (ex. initialization of the Drive cache failed). |
+ // Must be called on UI thread. |
+ static void DisableDrive(Profile* profile); |
hashimoto
2012/10/11 04:09:15
Can't this method be a free function in the namele
satorux1
2012/10/11 04:25:31
Good point. Done!
|
+ |
friend class DriveSystemServiceFactory; |
Profile* profile_; |