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

Unified Diff: chrome/browser/rlz/rlz.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/rlz/rlz.cc
===================================================================
--- chrome/browser/rlz/rlz.cc (revision 91968)
+++ chrome/browser/rlz/rlz.cc (working copy)
@@ -26,6 +26,7 @@
#include "chrome/browser/search_engines/template_url.h"
#include "chrome/browser/search_engines/template_url_service.h"
#include "chrome/browser/search_engines/template_url_service_factory.h"
+#include "chrome/common/chrome_notification_types.h"
#include "chrome/common/chrome_paths.h"
#include "chrome/common/env_vars.h"
#include "chrome/installer/util/google_update_settings.h"
@@ -71,18 +72,18 @@
: first_run_(first_run),
send_ping_immediately_(send_ping_immediately),
google_default_search_(google_default_search) {
- registrar_.Add(this, NotificationType::OMNIBOX_OPENED_URL,
+ registrar_.Add(this, chrome::NOTIFICATION_OMNIBOX_OPENED_URL,
NotificationService::AllSources());
// If instant is enabled we'll start searching as soon as the user starts
// typing in the omnibox (which triggers INSTANT_CONTROLLER_UPDATED).
- registrar_.Add(this, NotificationType::INSTANT_CONTROLLER_UPDATED,
+ registrar_.Add(this, chrome::NOTIFICATION_INSTANT_CONTROLLER_UPDATED,
NotificationService::AllSources());
omnibox_used_ = false;
DCHECK(!instance_);
instance_ = this;
}
- virtual void Observe(NotificationType type,
+ virtual void Observe(int type,
const NotificationSource& source,
const NotificationDetails& details);
@@ -231,7 +232,7 @@
bool DelayedInitTask::already_ran_ = false;
-void OmniBoxUsageObserver::Observe(NotificationType type,
+void OmniBoxUsageObserver::Observe(int type,
const NotificationSource& source,
const NotificationDetails& details) {
// Needs to be evaluated. See http://crbug.com/62328.
« no previous file with comments | « chrome/browser/repost_form_warning_controller.cc ('k') | chrome/browser/safe_browsing/client_side_detection_host.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698