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

Unified Diff: chrome/browser/sync/profile_sync_service.cc

Issue 162283002: Move towards event-driven JS on about:sync (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Another reupload Created 6 years, 10 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/sync/profile_sync_service.cc
diff --git a/chrome/browser/sync/profile_sync_service.cc b/chrome/browser/sync/profile_sync_service.cc
index ad4b070b20ca2ca18dceeef1033d011ab34d2844..d942c939255c017e540be72355237e46825ae5c0 100644
--- a/chrome/browser/sync/profile_sync_service.cc
+++ b/chrome/browser/sync/profile_sync_service.cc
@@ -879,16 +879,11 @@ void ProfileSyncService::UpdateLastSyncedTime() {
void ProfileSyncService::NotifyObservers() {
FOR_EACH_OBSERVER(ProfileSyncServiceBase::Observer, observers_,
OnStateChanged());
- // TODO(akalin): Make an Observer subclass that listens and does the
- // event routing.
- sync_js_controller_.HandleJsEvent("onServiceStateChanged", JsEventDetails());
}
void ProfileSyncService::NotifySyncCycleCompleted() {
FOR_EACH_OBSERVER(ProfileSyncServiceBase::Observer, observers_,
OnSyncCycleCompleted());
- sync_js_controller_.HandleJsEvent(
- "onServiceStateChanged", JsEventDetails());
}
void ProfileSyncService::ClearStaleErrors() {
« no previous file with comments | « chrome/browser/resources/sync_internals/data.js ('k') | chrome/browser/ui/webui/sync_internals_browsertest.js » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698