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

Unified Diff: chrome/browser/ui/webui/sync_file_system_internals/sync_file_system_internals_handler.cc

Issue 16398011: Show ExtensionID->OriginSyncStatus in syncfs-internals WebUI (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Rebase to test mac compile Created 7 years, 6 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
Index: chrome/browser/ui/webui/sync_file_system_internals/sync_file_system_internals_handler.cc
diff --git a/chrome/browser/ui/webui/sync_file_system_internals/sync_file_system_internals_handler.cc b/chrome/browser/ui/webui/sync_file_system_internals/sync_file_system_internals_handler.cc
index 2375dab5734aeda4c8991935e93c2498bab75e64..a1775588fca53d9da9c597d13f36f9bc39a42d6a 100644
--- a/chrome/browser/ui/webui/sync_file_system_internals/sync_file_system_internals_handler.cc
+++ b/chrome/browser/ui/webui/sync_file_system_internals/sync_file_system_internals_handler.cc
@@ -68,7 +68,7 @@ void SyncFileSystemInternalsHandler::OnSyncStateUpdated(
// TODO(calvinlo): OnSyncStateUpdated should be updated to also provide the
// notification mechanism (XMPP or Polling).
- web_ui()->CallJavascriptFunction("syncService.onGetServiceStatus",
+ web_ui()->CallJavascriptFunction("SyncService.onGetServiceStatus",
base::StringValue(state_string));
}
@@ -84,7 +84,7 @@ void SyncFileSystemInternalsHandler::GetServiceStatus(
profile_)->GetSyncServiceState();
std::string state_string = extensions::api::sync_file_system::ToString(
extensions::SyncServiceStateToExtensionEnum(state_enum));
- web_ui()->CallJavascriptFunction("syncService.onGetServiceStatus",
+ web_ui()->CallJavascriptFunction("SyncService.onGetServiceStatus",
base::StringValue(state_string));
}
@@ -94,7 +94,7 @@ void SyncFileSystemInternalsHandler::GetNotificationSource(
google_apis::DriveNotificationManagerFactory::GetForProfile(profile_);
bool xmpp_enabled = drive_notification_manager->push_notification_enabled();
std::string notification_source = xmpp_enabled ? "XMPP" : "Polling";
- web_ui()->CallJavascriptFunction("syncService.onGetNotificationSource",
+ web_ui()->CallJavascriptFunction("SyncService.onGetNotificationSource",
base::StringValue(notification_source));
}
@@ -121,7 +121,7 @@ void SyncFileSystemInternalsHandler::GetLog(
if (list.empty())
return;
- web_ui()->CallJavascriptFunction("syncService.onGetLog", list);
+ web_ui()->CallJavascriptFunction("SyncService.onGetLog", list);
}
} // namespace syncfs_internals

Powered by Google App Engine
This is Rietveld 408576698