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

Unified Diff: chrome/browser/sync/glue/session_change_processor.cc

Issue 7327007: Moving notification types which are chrome specific to a new header file chrome_notification_type... (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src/
Patch Set: '' Created 9 years, 5 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/glue/session_change_processor.cc
===================================================================
--- chrome/browser/sync/glue/session_change_processor.cc (revision 91771)
+++ chrome/browser/sync/glue/session_change_processor.cc (working copy)
@@ -16,6 +16,7 @@
#include "chrome/browser/sync/glue/session_model_associator.h"
#include "chrome/browser/sync/profile_sync_service.h"
#include "chrome/browser/ui/tab_contents/tab_contents_wrapper.h"
+#include "chrome/common/chrome_notification_types.h"
#include "content/browser/tab_contents/navigation_controller.h"
#include "content/browser/tab_contents/tab_contents.h"
#include "content/common/notification_details.h"
@@ -64,7 +65,7 @@
std::vector<TabContentsWrapper*> modified_tabs;
bool windows_changed = false;
switch (type.value) {
- case NotificationType::BROWSER_OPENED: {
+ case chrome::BROWSER_OPENED: {
Browser* browser = Source<Browser>(source).ptr();
if (browser->profile() != profile_) {
return;
@@ -129,7 +130,7 @@
break;
}
- case NotificationType::TAB_CONTENTS_APPLICATION_EXTENSION_CHANGED: {
+ case chrome::TAB_CONTENTS_APPLICATION_EXTENSION_CHANGED: {
ExtensionTabHelper* extension_tab_helper =
Source<ExtensionTabHelper>(source).ptr();
if (extension_tab_helper->tab_contents()->profile() != profile_) {
@@ -220,7 +221,7 @@
// Notify foreign session handlers that there are new sessions.
NotificationService::current()->Notify(
- NotificationType::FOREIGN_SESSION_UPDATED,
+ chrome::FOREIGN_SESSION_UPDATED,
NotificationService::AllSources(),
NotificationService::NoDetails());
@@ -254,10 +255,10 @@
NotificationService::AllSources());
notification_registrar_.Add(this, NotificationType::NAV_ENTRY_COMMITTED,
NotificationService::AllSources());
- notification_registrar_.Add(this, NotificationType::BROWSER_OPENED,
+ notification_registrar_.Add(this, chrome::BROWSER_OPENED,
NotificationService::AllSources());
notification_registrar_.Add(this,
- NotificationType::TAB_CONTENTS_APPLICATION_EXTENSION_CHANGED,
+ chrome::TAB_CONTENTS_APPLICATION_EXTENSION_CHANGED,
NotificationService::AllSources());
}

Powered by Google App Engine
This is Rietveld 408576698