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)); |
} |