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

Unified Diff: chrome/browser/chromeos/extensions/file_browser_private_api.cc

Issue 11094061: drive: Move IsDriveEnabled() and DisableDrive() to DriveSystemService (Closed) Base URL: http://git.chromium.org/chromium/src.git@drive_available
Patch Set: address comments Created 8 years, 2 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/chromeos/gdata/drive_system_service.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/browser/chromeos/extensions/file_browser_private_api.cc
diff --git a/chrome/browser/chromeos/extensions/file_browser_private_api.cc b/chrome/browser/chromeos/extensions/file_browser_private_api.cc
index 15f04d167d913044c24f310b131ba7f1c9f53b01..9a0bfe0475de7a7d1afcedaf02ee5ff90a45c48a 100644
--- a/chrome/browser/chromeos/extensions/file_browser_private_api.cc
+++ b/chrome/browser/chromeos/extensions/file_browser_private_api.cc
@@ -521,7 +521,7 @@ void RequestLocalFileSystemFunction::RespondSuccessOnUIThread(
// Add drive mount point immediately when we kick of first instance of file
// manager. The actual mount event will be sent to UI only when we perform
// proper authentication.
- if (gdata::util::IsDriveEnabled(profile_))
+ if (gdata::DriveSystemService::IsDriveEnabled(profile_))
AddDriveMountPoint(profile_, extension_id(), render_view_host());
DictionaryValue* dict = new DictionaryValue();
SetResult(dict);
@@ -2023,7 +2023,8 @@ bool FileDialogStringsFunction::RunImpl() {
ChromeURLDataManager::DataSource::SetFontAndTextDirection(dict);
- dict->SetBoolean("ENABLE_GDATA", gdata::util::IsDriveEnabled(profile()));
+ dict->SetBoolean("ENABLE_GDATA",
+ gdata::DriveSystemService::IsDriveEnabled(profile()));
#if defined(USE_ASH)
dict->SetBoolean("ASH", true);
@@ -2595,7 +2596,7 @@ bool GetDrivePreferencesFunction::RunImpl() {
const PrefService* service = profile_->GetPrefs();
- bool drive_enabled = gdata::util::IsDriveEnabled(profile_);
+ bool drive_enabled = gdata::DriveSystemService::IsDriveEnabled(profile_);
if (drive_enabled)
AddDriveMountPoint(profile_, extension_id(), render_view_host());
« no previous file with comments | « no previous file | chrome/browser/chromeos/gdata/drive_system_service.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698