HomeSort by relevance Sort by last modified time
    Searched refs:ShouldShow (Results 1 - 4 of 4) sorted by null

  /external/chromium/chrome/browser/instant/
promo_counter_unittest.cc 11 // Makes sure ShouldShow returns false after the max number of days.
18 ASSERT_TRUE(counter.ShouldShow(test_time));
19 ASSERT_TRUE(counter.ShouldShow(test_time + base::TimeDelta::FromHours(2)));
20 ASSERT_FALSE(counter.ShouldShow(test_time + base::TimeDelta::FromDays(4)));
23 // Makes sure ShouldShow returns false after max number of sessions encountered.
31 ASSERT_TRUE(counter.ShouldShow(test_time));
36 ASSERT_TRUE(counter.ShouldShow(test_time));
41 ASSERT_FALSE(counter.ShouldShow(test_time));
45 // Makes sure invoking Hide make ShouldShow return false.
54 ASSERT_FALSE(counter.ShouldShow(test_time))
    [all...]
promo_counter.h 24 // |ShouldShow| returns true until the users restarts chrome |max_sessions| or
38 bool ShouldShow(base::Time current_time);
44 // Called the first time ShouldShow is invoked. Updates the necessary pref
69 // Return value from ShouldShow.
promo_counter.cc 47 bool PromoCounter::ShouldShow(base::Time current_time) {
91 // Time check is handled in ShouldShow.
  /external/chromium/chrome/browser/ui/views/autocomplete/
autocomplete_popup_contents_view.cc 310 if (!opt_in_view_ && counter && counter->ShouldShow(base::Time::Now())) {
314 !counter->ShouldShow(base::Time::Now()))) {

Completed in 42 milliseconds