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

Unified Diff: chrome/browser/sessions/session_restore.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/sessions/session_restore.cc
===================================================================
--- chrome/browser/sessions/session_restore.cc (revision 91771)
+++ chrome/browser/sessions/session_restore.cc (working copy)
@@ -26,6 +26,7 @@
#include "chrome/browser/ui/browser_list.h"
#include "chrome/browser/ui/browser_navigator.h"
#include "chrome/browser/ui/browser_window.h"
+#include "chrome/common/chrome_notification_types.h"
#include "content/browser/renderer_host/render_widget_host.h"
#include "content/browser/renderer_host/render_widget_host_view.h"
#include "content/browser/tab_contents/navigation_controller.h"
@@ -185,7 +186,7 @@
LoadNextTab();
} else {
// Start listening to network state notification now.
- registrar_.Add(this, NotificationType::NETWORK_STATE_CHANGED,
+ registrar_.Add(this, chrome::NETWORK_STATE_CHANGED,
NotificationService::AllSources());
}
#else
@@ -232,7 +233,7 @@
const NotificationDetails& details) {
switch (type.value) {
#if defined(OS_CHROMEOS)
- case NotificationType::NETWORK_STATE_CHANGED: {
+ case chrome::NETWORK_STATE_CHANGED: {
chromeos::NetworkStateDetails* state_details =
Details<chromeos::NetworkStateDetails>(details).ptr();
switch (state_details->state()) {
@@ -447,7 +448,7 @@
}
if (browser_) {
- registrar_.Add(this, NotificationType::BROWSER_CLOSED,
+ registrar_.Add(this, chrome::BROWSER_CLOSED,
Source<Browser>(browser_));
}
@@ -503,7 +504,7 @@
const NotificationSource& source,
const NotificationDetails& details) {
switch (type.value) {
- case NotificationType::BROWSER_CLOSED:
+ case chrome::BROWSER_CLOSED:
delete this;
return;

Powered by Google App Engine
This is Rietveld 408576698