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

Side by Side Diff: chrome/browser/sync/glue/session_change_processor.cc

Issue 7639002: Profiles: BROWSER_OPENED (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Same code; another round to see if flake Created 9 years, 4 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 unified diff | Download patch | Annotate | Revision Log
« no previous file with comments | « chrome/browser/sessions/session_service.cc ('k') | chrome/browser/tabs/pinned_tab_service.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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
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
OLDNEW
« no previous file with comments | « chrome/browser/sessions/session_service.cc ('k') | chrome/browser/tabs/pinned_tab_service.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698