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

Unified Diff: chrome/browser/google/google_url_tracker_unittest.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
« no previous file with comments | « chrome/browser/google/google_url_tracker.cc ('k') | chrome/browser/history/expire_history_backend.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/browser/google/google_url_tracker_unittest.cc
===================================================================
--- chrome/browser/google/google_url_tracker_unittest.cc (revision 91968)
+++ chrome/browser/google/google_url_tracker_unittest.cc (working copy)
@@ -9,6 +9,7 @@
#include "chrome/browser/browser_process.h"
#include "chrome/browser/prefs/browser_prefs.h"
#include "chrome/browser/tab_contents/confirm_infobar_delegate.h"
+#include "chrome/common/chrome_notification_types.h"
#include "chrome/common/pref_names.h"
#include "chrome/test/testing_browser_process_test.h"
#include "chrome/test/testing_pref_service.h"
@@ -30,7 +31,7 @@
TestNotificationObserver();
virtual ~TestNotificationObserver();
- virtual void Observe(NotificationType type,
+ virtual void Observe(int type,
const NotificationSource& source,
const NotificationDetails& details);
bool notified() const { return notified_; }
@@ -46,7 +47,7 @@
TestNotificationObserver::~TestNotificationObserver() {
}
-void TestNotificationObserver::Observe(NotificationType type,
+void TestNotificationObserver::Observe(int type,
const NotificationSource& source,
const NotificationDetails& details) {
notified_ = true;
@@ -186,9 +187,9 @@
void GoogleURLTrackerTest::RequestServerCheck() {
if (!registrar_.IsRegistered(observer_.get(),
- NotificationType::GOOGLE_URL_UPDATED,
+ chrome::NOTIFICATION_GOOGLE_URL_UPDATED,
NotificationService::AllSources())) {
- registrar_.Add(observer_.get(), NotificationType::GOOGLE_URL_UPDATED,
+ registrar_.Add(observer_.get(), chrome::NOTIFICATION_GOOGLE_URL_UPDATED,
NotificationService::AllSources());
}
GoogleURLTracker::RequestServerCheck();
@@ -228,7 +229,7 @@
g_browser_process->google_url_tracker();
google_url_tracker->SearchCommitted();
if (google_url_tracker->registrar_.IsRegistered(google_url_tracker,
- NotificationType::NAV_ENTRY_PENDING,
+ content::NOTIFICATION_NAV_ENTRY_PENDING,
NotificationService::AllSources()))
google_url_tracker->search_url_ = search_url;
}
« no previous file with comments | « chrome/browser/google/google_url_tracker.cc ('k') | chrome/browser/history/expire_history_backend.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698