diff options
Diffstat (limited to 'chrome/browser/rlz')
-rw-r--r-- | chrome/browser/rlz/rlz.cc | 3 | ||||
-rw-r--r-- | chrome/browser/rlz/rlz.h | 5 | ||||
-rw-r--r-- | chrome/browser/rlz/rlz_unittest.cc | 3 |
3 files changed, 3 insertions, 8 deletions
diff --git a/chrome/browser/rlz/rlz.cc b/chrome/browser/rlz/rlz.cc index 1af7d7b..ea208a3 100644 --- a/chrome/browser/rlz/rlz.cc +++ b/chrome/browser/rlz/rlz.cc @@ -196,6 +196,7 @@ bool RLZTracker::Init(bool first_run, int delay, bool google_default_search, NotificationService::AllSources()); ScheduleDelayedInit(delay); + return true; } @@ -295,7 +296,7 @@ void RLZTracker::Observe(int type, case content::NOTIFICATION_NAV_ENTRY_PENDING: { const NavigationEntry* entry = Details<NavigationEntry>(details).ptr(); if (entry != NULL && - ((entry->transition_type() & RLZ_PAGETRANSITION_HOME_PAGE) != 0)) { + ((entry->transition_type() & PageTransition::HOME_PAGE) != 0)) { point = rlz_lib::CHROME_HOME_PAGE; record_used = &homepage_used_; call_record = true; diff --git a/chrome/browser/rlz/rlz.h b/chrome/browser/rlz/rlz.h index cbbec70..c335cbd 100644 --- a/chrome/browser/rlz/rlz.h +++ b/chrome/browser/rlz/rlz.h @@ -66,11 +66,6 @@ class RLZTracker : public NotificationObserver { RLZTracker(); ~RLZTracker(); - // This is a temporary constant used here until the home page change is - // committed, which will happen before 2011-09-01. This constant will be - // replaced with PageTransition::HOME_PAGE. - static const int RLZ_PAGETRANSITION_HOME_PAGE = 0x02000000; - // Thread function entry point, see ScheduleFinancialPing(). Assumes argument // is a pointer to an RLZTracker. static void _cdecl PingNow(void* tracker); diff --git a/chrome/browser/rlz/rlz_unittest.cc b/chrome/browser/rlz/rlz_unittest.cc index 96816a4..3d1d860 100644 --- a/chrome/browser/rlz/rlz_unittest.cc +++ b/chrome/browser/rlz/rlz_unittest.cc @@ -80,7 +80,6 @@ class TestRLZTracker : public RLZTracker { public: using RLZTracker::DelayedInit; using RLZTracker::Observe; - using RLZTracker::RLZ_PAGETRANSITION_HOME_PAGE; TestRLZTracker() : pingnow_called_(false), assume_io_thread_(false) { set_tracker(this); @@ -204,7 +203,7 @@ void RlzLibTest::SimulateOmniboxUsage() { void RlzLibTest::SimulateHomepageUsage() { NavigationEntry entry(NULL, 0, GURL(), GURL(), string16(), - TestRLZTracker::RLZ_PAGETRANSITION_HOME_PAGE); + PageTransition::HOME_PAGE); tracker_.Observe(content::NOTIFICATION_NAV_ENTRY_PENDING, NotificationService::AllSources(), Details<NavigationEntry>(&entry)); |