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

Unified Diff: chrome/browser/ui/browser_list.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/ui/browser_list.cc
===================================================================
--- chrome/browser/ui/browser_list.cc (revision 91771)
+++ chrome/browser/ui/browser_list.cc (working copy)
@@ -15,6 +15,7 @@
#include "chrome/browser/profiles/profile_manager.h"
#include "chrome/browser/ui/browser_window.h"
#include "chrome/browser/ui/tab_contents/tab_contents_wrapper.h"
+#include "chrome/common/chrome_notification_types.h"
#include "chrome/common/pref_names.h"
#include "content/browser/renderer_host/render_process_host.h"
#include "content/browser/tab_contents/navigation_details.h"
@@ -242,7 +243,7 @@
activity_observer = new BrowserActivityObserver;
NotificationService::current()->Notify(
- NotificationType::BROWSER_OPENED,
+ chrome::BROWSER_OPENED,
Source<Browser>(browser),
NotificationService::NoDetails());
@@ -319,7 +320,7 @@
// TODO(andybons): Fix the UI tests to Do The Right Thing.
bool closing_last_browser = (browsers_.size() == 1);
NotificationService::current()->Notify(
- NotificationType::BROWSER_CLOSED,
+ chrome::BROWSER_CLOSED,
Source<Browser>(browser), Details<bool>(&closing_last_browser));
RemoveBrowserFrom(browser, &browsers_);
@@ -511,7 +512,7 @@
// Send out notification. This is used during testing so that the test harness
// can properly shutdown before we exit.
NotificationService::current()->Notify(
- NotificationType::SESSION_END,
+ chrome::SESSION_END,
NotificationService::AllSources(),
NotificationService::NoDetails());

Powered by Google App Engine
This is Rietveld 408576698