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

Unified Diff: chrome/browser/rlz/rlz.cc

Issue 12386019: Instant: Use only one hidden WebContents per profile. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 7 years, 10 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
diff --git a/chrome/browser/rlz/rlz.cc b/chrome/browser/rlz/rlz.cc
index de2f78f29a9b9c8d1229d566eefc3721f44c13a5..a12d67dbbf5cf3a65a89c015fe9dfbf330f7f28f 100644
--- a/chrome/browser/rlz/rlz.cc
+++ b/chrome/browser/rlz/rlz.cc
@@ -274,9 +274,9 @@ bool RLZTracker::Init(bool first_run,
// the user performs a first search.
registrar_.Add(this, chrome::NOTIFICATION_OMNIBOX_OPENED_URL,
content::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, chrome::NOTIFICATION_INSTANT_CONTROLLER_UPDATED,
+ // If Instant is enabled we'll start searching as soon as the user starts
+ // typing in the omnibox (which triggers INSTANT_UPDATED).
+ registrar_.Add(this, chrome::NOTIFICATION_INSTANT_UPDATED,
content::NotificationService::AllSources());
// Register for notifications from navigations, to see if the user has used
@@ -376,11 +376,11 @@ void RLZTracker::Observe(int type,
const content::NotificationDetails& details) {
switch (type) {
case chrome::NOTIFICATION_OMNIBOX_OPENED_URL:
- case chrome::NOTIFICATION_INSTANT_CONTROLLER_UPDATED:
+ case chrome::NOTIFICATION_INSTANT_UPDATED:
RecordFirstSearch(CHROME_OMNIBOX);
registrar_.Remove(this, chrome::NOTIFICATION_OMNIBOX_OPENED_URL,
content::NotificationService::AllSources());
- registrar_.Remove(this, chrome::NOTIFICATION_INSTANT_CONTROLLER_UPDATED,
+ registrar_.Remove(this, chrome::NOTIFICATION_INSTANT_UPDATED,
content::NotificationService::AllSources());
break;
case content::NOTIFICATION_NAV_ENTRY_PENDING: {

Powered by Google App Engine
This is Rietveld 408576698