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

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

Issue 2714853002: Remove kDistroDict from Preferences. (Closed)
Patch Set: kRlzPingDelay -> kRlzPingDelaySeconds Created 3 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
« no previous file with comments | « chrome/browser/rlz/chrome_rlz_tracker_delegate.h ('k') | chrome/common/BUILD.gn » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/browser/rlz/chrome_rlz_tracker_delegate.cc
diff --git a/chrome/browser/rlz/chrome_rlz_tracker_delegate.cc b/chrome/browser/rlz/chrome_rlz_tracker_delegate.cc
index 2988886a780697baf658d36bf51aab073ee83b83..0da9621fa046c37bf22a228b6bd62a8685102bc3 100644
--- a/chrome/browser/rlz/chrome_rlz_tracker_delegate.cc
+++ b/chrome/browser/rlz/chrome_rlz_tracker_delegate.cc
@@ -18,6 +18,7 @@
#include "chrome/common/pref_names.h"
#include "components/google/core/browser/google_util.h"
#include "components/omnibox/browser/omnibox_log.h"
+#include "components/pref_registry/pref_registry_syncable.h"
#include "components/prefs/pref_service.h"
#include "components/search_engines/template_url.h"
#include "components/search_engines/template_url_service.h"
@@ -29,6 +30,7 @@
#include "content/public/browser/notification_service.h"
#include "content/public/browser/notification_source.h"
#include "content/public/common/content_switches.h"
+#include "rlz/features/features.h"
#if defined(OS_WIN)
#include "chrome/installer/util/google_update_settings.h"
@@ -41,6 +43,14 @@ ChromeRLZTrackerDelegate::~ChromeRLZTrackerDelegate() {
}
// static
+void ChromeRLZTrackerDelegate::RegisterProfilePrefs(
+ user_prefs::PrefRegistrySyncable* registry) {
+#if BUILDFLAG(ENABLE_RLZ)
+ registry->RegisterIntegerPref(prefs::kRlzPingDelaySeconds, 90);
+#endif
+}
+
+// static
bool ChromeRLZTrackerDelegate::IsGoogleDefaultSearch(Profile* profile) {
bool is_google_default_search = false;
TemplateURLService* template_url_service =
« no previous file with comments | « chrome/browser/rlz/chrome_rlz_tracker_delegate.h ('k') | chrome/common/BUILD.gn » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698