| OLD | NEW |
| 1 // Copyright (c) 2011 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2011 The Chromium Authors. All rights reserved. |
| 2 // Use of this source code is governed by a BSD-style license that can be | 2 // Use of this source code is governed by a BSD-style license that can be |
| 3 // found in the LICENSE file. | 3 // found in the LICENSE file. |
| 4 | 4 |
| 5 #include "chrome/browser/sync/glue/session_change_processor.h" | 5 #include "chrome/browser/sync/glue/session_change_processor.h" |
| 6 | 6 |
| 7 #include <sstream> | 7 #include <sstream> |
| 8 #include <string> | 8 #include <string> |
| 9 #include <vector> | 9 #include <vector> |
| 10 | 10 |
| (...skipping 262 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 273 NotificationService::AllSources()); | 273 NotificationService::AllSources()); |
| 274 notification_registrar_.Add(this, content::NOTIFICATION_TAB_CLOSED, | 274 notification_registrar_.Add(this, content::NOTIFICATION_TAB_CLOSED, |
| 275 NotificationService::AllSources()); | 275 NotificationService::AllSources()); |
| 276 notification_registrar_.Add(this, content::NOTIFICATION_NAV_LIST_PRUNED, | 276 notification_registrar_.Add(this, content::NOTIFICATION_NAV_LIST_PRUNED, |
| 277 NotificationService::AllSources()); | 277 NotificationService::AllSources()); |
| 278 notification_registrar_.Add(this, content::NOTIFICATION_NAV_ENTRY_CHANGED, | 278 notification_registrar_.Add(this, content::NOTIFICATION_NAV_ENTRY_CHANGED, |
| 279 NotificationService::AllSources()); | 279 NotificationService::AllSources()); |
| 280 notification_registrar_.Add(this, content::NOTIFICATION_NAV_ENTRY_COMMITTED, | 280 notification_registrar_.Add(this, content::NOTIFICATION_NAV_ENTRY_COMMITTED, |
| 281 NotificationService::AllSources()); | 281 NotificationService::AllSources()); |
| 282 notification_registrar_.Add(this, chrome::NOTIFICATION_BROWSER_OPENED, | 282 notification_registrar_.Add(this, chrome::NOTIFICATION_BROWSER_OPENED, |
| 283 NotificationService::AllSources()); | 283 NotificationService::AllBrowserContextsAndSources()); |
| 284 notification_registrar_.Add(this, | 284 notification_registrar_.Add(this, |
| 285 chrome::NOTIFICATION_TAB_CONTENTS_APPLICATION_EXTENSION_CHANGED, | 285 chrome::NOTIFICATION_TAB_CONTENTS_APPLICATION_EXTENSION_CHANGED, |
| 286 NotificationService::AllSources()); | 286 NotificationService::AllSources()); |
| 287 notification_registrar_.Add(this, | 287 notification_registrar_.Add(this, |
| 288 content::NOTIFICATION_LOAD_COMPLETED_MAIN_FRAME, | 288 content::NOTIFICATION_LOAD_COMPLETED_MAIN_FRAME, |
| 289 NotificationService::AllSources()); | 289 NotificationService::AllSources()); |
| 290 } | 290 } |
| 291 | 291 |
| 292 void SessionChangeProcessor::StopObserving() { | 292 void SessionChangeProcessor::StopObserving() { |
| 293 DCHECK(BrowserThread::CurrentlyOn(BrowserThread::UI)); | 293 DCHECK(BrowserThread::CurrentlyOn(BrowserThread::UI)); |
| 294 DCHECK(profile_); | 294 DCHECK(profile_); |
| 295 notification_registrar_.RemoveAll(); | 295 notification_registrar_.RemoveAll(); |
| 296 } | 296 } |
| 297 | 297 |
| 298 } // namespace browser_sync | 298 } // namespace browser_sync |
| OLD | NEW |