#include "base/metrics/histogram.h"
#include "base/stl_util.h"
#include "base/strings/string_util.h"
-#include "chrome/browser/google/google_util.h"
+#include "components/google/core/browser/google_util.h"
#include "net/cookies/canonical_cookie.h"
namespace chrome_browser_net {
DelegateImpl();
// EvictedDomainCookieCounter::Delegate implementation.
- virtual void Report(
- const EvictedDomainCookieCounter::EvictedCookie& evicted_cookie,
- const Time& reinstatement_time) OVERRIDE;
- virtual Time CurrentTime() const OVERRIDE;
+ void Report(const EvictedDomainCookieCounter::EvictedCookie& evicted_cookie,
+ const Time& reinstatement_time) override;
+ Time CurrentTime() const override;
};
DelegateImpl::DelegateImpl() {}
const Time& reinstatement_time) {
TimeDelta reinstatement_delay(
reinstatement_time - evicted_cookie.eviction_time);
- // Need to duplicate HISTOGRAM_CUSTOM_TIMES(), since it is a macro that
+ // Need to duplicate UMA_HISTOGRAM_CUSTOM_TIMES(), since it is a macro that
// defines a static variable.
if (evicted_cookie.is_google) {
UMA_HISTOGRAM_CUSTOM_TIMES("Cookie.ReinstatedCookiesGoogle",
next_cookie_monster_delegate_->OnCookieChanged(cookie, removed, cause);
}
+void EvictedDomainCookieCounter::OnLoaded() {
+ if (next_cookie_monster_delegate_.get())
+ next_cookie_monster_delegate_->OnLoaded();
+}
+
// static
EvictedDomainCookieCounter::EvictedCookieKey
EvictedDomainCookieCounter::GetKey(const net::CanonicalCookie& cookie) {