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

Unified Diff: chrome/browser/google/google_url_tracker.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/google/google_url_tracker.cc
===================================================================
--- chrome/browser/google/google_url_tracker.cc (revision 91771)
+++ chrome/browser/google/google_url_tracker.cc (working copy)
@@ -14,6 +14,7 @@
#include "chrome/browser/prefs/pref_service.h"
#include "chrome/browser/search_engines/template_url.h"
#include "chrome/browser/ui/tab_contents/tab_contents_wrapper.h"
+#include "chrome/common/chrome_notification_types.h"
#include "chrome/common/chrome_switches.h"
#include "chrome/common/pref_names.h"
#include "content/browser/tab_contents/navigation_controller.h"
@@ -257,7 +258,7 @@
google_url_.spec());
g_browser_process->local_state()->SetString(prefs::kLastPromptedGoogleURL,
google_url_.spec());
- NotificationService::current()->Notify(NotificationType::GOOGLE_URL_UPDATED,
+ NotificationService::current()->Notify(chrome::GOOGLE_URL_UPDATED,
NotificationService::AllSources(),
NotificationService::NoDetails());
need_to_prompt_ = false;
@@ -341,7 +342,7 @@
void GoogleURLTracker::OnNavigationCommittedOrTabClosed(
TabContents* tab_contents,
- NotificationType::Type type) {
+ int type) {
registrar_.RemoveAll();
if (type == NotificationType::NAV_ENTRY_COMMITTED) {

Powered by Google App Engine
This is Rietveld 408576698