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

Unified Diff: chrome/browser/chromeos/drive/drive_integration_service.cc

Issue 118993002: drive: Move FileSystem::LoadDirectoryIfNeeded to ChangeListLoader (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Review fix Created 7 years 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/drive/drive_integration_service.cc
diff --git a/chrome/browser/chromeos/drive/drive_integration_service.cc b/chrome/browser/chromeos/drive/drive_integration_service.cc
index b09cd9731981246942bd0c11f99673f98925531e..08c9fc5f1dbb0ce7094fb1e13f5413ff7544cc06 100644
--- a/chrome/browser/chromeos/drive/drive_integration_service.cc
+++ b/chrome/browser/chromeos/drive/drive_integration_service.cc
@@ -391,8 +391,8 @@ void DriveIntegrationService::ClearCacheAndRemountFileSystem(
state_ = REMOUNTING;
// Reloads the Drive app registry.
drive_app_registry_->Update();
- // Reloading the file system clears resource metadata and cache.
- file_system_->Reload(base::Bind(
+ // Resetting the file system clears resource metadata and cache.
+ file_system_->Reset(base::Bind(
&DriveIntegrationService::AddBackDriveMountPoint,
weak_ptr_factory_.GetWeakPtr(),
callback));
@@ -407,7 +407,7 @@ void DriveIntegrationService::AddBackDriveMountPoint(
state_ = error == FILE_ERROR_OK ? INITIALIZED : NOT_INITIALIZED;
if (error != FILE_ERROR_OK || !enabled_) {
- // Failed to reload, or Drive was disabled during the reloading.
+ // Failed to reset, or Drive was disabled during the reset.
callback.Run(false);
return;
}
« no previous file with comments | « chrome/browser/chromeos/drive/change_list_loader_unittest.cc ('k') | chrome/browser/chromeos/drive/dummy_file_system.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698