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

Unified Diff: chrome/browser/ui/webui/chromeos/drive_internals_ui.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
« no previous file with comments | « chrome/browser/resources/chromeos/drive_internals.js ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/browser/ui/webui/chromeos/drive_internals_ui.cc
diff --git a/chrome/browser/ui/webui/chromeos/drive_internals_ui.cc b/chrome/browser/ui/webui/chromeos/drive_internals_ui.cc
index 096f368b814dd7315784605c2d8b195ad3a967c6..f32ee9305f3a6b9e17cdb66ca796e0d29dd580e9 100644
--- a/chrome/browser/ui/webui/chromeos/drive_internals_ui.cc
+++ b/chrome/browser/ui/webui/chromeos/drive_internals_ui.cc
@@ -290,11 +290,11 @@ class DriveInternalsWebUIHandler : public content::WebUIMessageHandler {
// Called when the corresponding button on the page is pressed.
void ClearAccessToken(const base::ListValue* args);
void ClearRefreshToken(const base::ListValue* args);
- void ReloadDriveFileSystem(const base::ListValue* args);
+ void ResetDriveFileSystem(const base::ListValue* args);
void ListFileEntries(const base::ListValue* args);
- // Called after file system reload for ReloadDriveFileSystem is done.
- void ReloadFinished(bool success);
+ // Called after file system reset for ResetDriveFileSystem is done.
+ void ResetFinished(bool success);
// The last event sent to the JavaScript side.
int last_sent_event_id_;
@@ -375,8 +375,8 @@ void DriveInternalsWebUIHandler::RegisterMessages() {
base::Bind(&DriveInternalsWebUIHandler::ClearRefreshToken,
weak_ptr_factory_.GetWeakPtr()));
web_ui()->RegisterMessageCallback(
- "reloadDriveFileSystem",
- base::Bind(&DriveInternalsWebUIHandler::ReloadDriveFileSystem,
+ "resetDriveFileSystem",
+ base::Bind(&DriveInternalsWebUIHandler::ResetDriveFileSystem,
weak_ptr_factory_.GetWeakPtr()));
web_ui()->RegisterMessageCallback(
"listFileEntries",
@@ -588,7 +588,7 @@ void DriveInternalsWebUIHandler::ClearRefreshToken(
drive_service->ClearRefreshToken();
}
-void DriveInternalsWebUIHandler::ReloadDriveFileSystem(
+void DriveInternalsWebUIHandler::ResetDriveFileSystem(
const base::ListValue* args) {
DCHECK(BrowserThread::CurrentlyOn(BrowserThread::UI));
@@ -596,15 +596,15 @@ void DriveInternalsWebUIHandler::ReloadDriveFileSystem(
GetIntegrationService();
if (integration_service) {
integration_service->ClearCacheAndRemountFileSystem(
- base::Bind(&DriveInternalsWebUIHandler::ReloadFinished,
+ base::Bind(&DriveInternalsWebUIHandler::ResetFinished,
weak_ptr_factory_.GetWeakPtr()));
}
}
-void DriveInternalsWebUIHandler::ReloadFinished(bool success) {
+void DriveInternalsWebUIHandler::ResetFinished(bool success) {
DCHECK(BrowserThread::CurrentlyOn(BrowserThread::UI));
- web_ui()->CallJavascriptFunction("updateReloadStatus",
+ web_ui()->CallJavascriptFunction("updateResetStatus",
base::FundamentalValue(success));
}
« no previous file with comments | « chrome/browser/resources/chromeos/drive_internals.js ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698