Searched refs:GoogleUpdateSettings (Results 1 - 25 of 60) sorted by relevance

123

/external/chromium/chrome/browser/google/
H A Dgoogle_update_settings_unittest.cc14 EXPECT_FALSE(GoogleUpdateSettings::GetCollectStatsConsent());
16 EXPECT_TRUE(GoogleUpdateSettings::SetCollectStatsConsent(true));
17 EXPECT_TRUE(GoogleUpdateSettings::GetCollectStatsConsent());
19 EXPECT_TRUE(GoogleUpdateSettings::SetCollectStatsConsent(false));
20 EXPECT_FALSE(GoogleUpdateSettings::GetCollectStatsConsent());
27 EXPECT_TRUE(GoogleUpdateSettings::RemoveLastRunTime());
28 EXPECT_EQ(-1, GoogleUpdateSettings::GetLastRunTime());
31 EXPECT_TRUE(GoogleUpdateSettings::SetLastRunTime());
32 EXPECT_EQ(0, GoogleUpdateSettings::GetLastRunTime());
39 EXPECT_FALSE(GoogleUpdateSettings
[all...]
H A Dgoogle_update_settings_posix.cc20 bool GoogleUpdateSettings::GetCollectStatsConsent() {
32 bool GoogleUpdateSettings::SetCollectStatsConsent(bool consented) {
54 bool GoogleUpdateSettings::SetMetricsId(const std::wstring& client_id) {
59 !GoogleUpdateSettings::GetCollectStatsConsent())
64 return GoogleUpdateSettings::SetCollectStatsConsent(true);
72 int GoogleUpdateSettings::GetLastRunTime() {
77 bool GoogleUpdateSettings::SetLastRunTime() {
/external/chromium_org/chrome/browser/google/
H A Dgoogle_update_settings_unittest.cc28 EXPECT_FALSE(GoogleUpdateSettings::GetCollectStatsConsent());
30 EXPECT_TRUE(GoogleUpdateSettings::SetCollectStatsConsent(true));
31 EXPECT_TRUE(GoogleUpdateSettings::GetCollectStatsConsent());
33 EXPECT_TRUE(GoogleUpdateSettings::SetCollectStatsConsent(false));
34 EXPECT_FALSE(GoogleUpdateSettings::GetCollectStatsConsent());
41 EXPECT_TRUE(GoogleUpdateSettings::RemoveLastRunTime());
42 EXPECT_EQ(-1, GoogleUpdateSettings::GetLastRunTime());
45 EXPECT_TRUE(GoogleUpdateSettings::SetLastRunTime());
46 EXPECT_EQ(0, GoogleUpdateSettings::GetLastRunTime());
H A Dgoogle_update_settings_posix.cc26 bool GoogleUpdateSettings::GetCollectStatsConsent() {
38 bool GoogleUpdateSettings::SetCollectStatsConsent(bool consented) {
61 bool GoogleUpdateSettings::GetMetricsId(std::string* metrics_id) {
67 bool GoogleUpdateSettings::SetMetricsId(const std::string& client_id) {
72 !GoogleUpdateSettings::GetCollectStatsConsent()) {
78 return GoogleUpdateSettings::SetCollectStatsConsent(true);
86 int GoogleUpdateSettings::GetLastRunTime() {
91 bool GoogleUpdateSettings::SetLastRunTime() {
/external/chromium_org/chrome/browser/ui/options/
H A Doptions_util.cc14 // GoogleUpdateSettings touches the disk from the UI thread. MetricsService
15 // also calls GoogleUpdateSettings below. http://crbug/62626
18 GoogleUpdateSettings::SetCollectStatsConsent(enabled);
19 bool update_pref = GoogleUpdateSettings::GetCollectStatsConsent();
24 // Only change the pref if GoogleUpdateSettings::GetCollectStatsConsent
/external/chromium_org/chrome/installer/util/
H A Dgoogle_update_settings_unittest.cc32 const GoogleUpdateSettings::UpdatePolicy kDefaultUpdatePolicy =
34 GoogleUpdateSettings::AUTOMATIC_UPDATES;
36 GoogleUpdateSettings::UPDATES_DISABLED;
107 EXPECT_TRUE(GoogleUpdateSettings::GetChromeChannelAndModifiers(
129 EXPECT_TRUE(GoogleUpdateSettings::ReadExperimentLabels(
133 EXPECT_TRUE(GoogleUpdateSettings::SetExperimentLabels(
148 EXPECT_TRUE(GoogleUpdateSettings::ReadExperimentLabels(
155 EXPECT_TRUE(GoogleUpdateSettings::SetExperimentLabels(
161 EXPECT_TRUE(GoogleUpdateSettings::ReadExperimentLabels(
167 EXPECT_FALSE(GoogleUpdateSettings
[all...]
H A Dgoogle_update_settings.cc40 const GoogleUpdateSettings::UpdatePolicy kGoogleUpdateDefaultUpdatePolicy =
42 GoogleUpdateSettings::AUTOMATIC_UPDATES;
44 GoogleUpdateSettings::UPDATES_DISABLED;
175 GoogleUpdateSettings::UpdatePolicy* update_policy) {
177 case GoogleUpdateSettings::UPDATES_DISABLED:
178 case GoogleUpdateSettings::AUTOMATIC_UPDATES:
179 case GoogleUpdateSettings::MANUAL_UPDATES_ONLY:
180 case GoogleUpdateSettings::AUTO_UPDATES_ONLY:
181 *update_policy = static_cast<GoogleUpdateSettings::UpdatePolicy>(value);
191 bool GoogleUpdateSettings
[all...]
H A Dgoogle_chrome_binaries_distribution.cc59 GoogleUpdateSettings::UpdateInstallStatus(system_install,
H A Dgoogle_update_settings.h26 class GoogleUpdateSettings { class
285 DISALLOW_IMPLICIT_CONSTRUCTORS(GoogleUpdateSettings);
H A Duser_experiment.cc55 if (!GoogleUpdateSettings::GetLanguage(&language))
208 int key = GoogleUpdateSettings::DuplicateGoogleUpdateSystemClientKey();
266 GoogleUpdateSettings::WriteGoogleUpdateSystemClientKey(
272 GoogleUpdateSettings::SetClient(experiment_group);
334 GoogleUpdateSettings::GetLanguage(&locale);
339 if (!GoogleUpdateSettings::GetBrand(&brand))
415 if (GoogleUpdateSettings::GetBrand(&brand) && (brand == L"CHXX")) {
421 GoogleUpdateSettings::GetClient(&client);
/external/chromium_org/chrome/browser/metrics/variations/
H A Dvariations_registry_syncer_win.cc54 bool success = GoogleUpdateSettings::ReadExperimentLabels(is_system_install,
77 if (!GoogleUpdateSettings::SetExperimentLabels(is_system_install,
/external/chromium_org/chrome/common/
H A Dchrome_version_info_win.cc26 GoogleUpdateSettings::GetChromeChannelAndModifiers(is_system_install,
48 channel = GoogleUpdateSettings::GetChromeChannel(is_system_install);
/external/chromium_org/chrome/browser/first_run/
H A Dfirst_run_internal_posix.cc43 if (GoogleUpdateSettings::GetCollectStatsConsent()) {
/external/chromium/chrome/browser/chromeos/
H A Dmetrics_cros_settings_provider.cc52 collect_stats_consent = GoogleUpdateSettings::GetCollectStatsConsent();
76 return GoogleUpdateSettings::GetCollectStatsConsent();
/external/chromium_org/chrome/installer/gcapi/
H A Dgcapi_omaha_experiment_test.cc36 EXPECT_TRUE(GoogleUpdateSettings::ReadExperimentLabels(false,
62 GoogleUpdateSettings::SetExperimentLabels(false, kSomeExperiments);
79 GoogleUpdateSettings::SetExperimentLabels(false, previous_labels);
96 GoogleUpdateSettings::SetExperimentLabels(false, previous_labels);
120 GoogleUpdateSettings::SetExperimentLabels(false, previous_labels);
146 GoogleUpdateSettings::SetExperimentLabels(false, previous_labels);
169 GoogleUpdateSettings::SetExperimentLabels(false, previous_labels);
H A Dgcapi_omaha_experiment.cc39 if (!GoogleUpdateSettings::ReadExperimentLabels(system_level,
64 return GoogleUpdateSettings::SetExperimentLabels(system_level,
/external/chromium/chrome/common/
H A Dchild_process_logging_win.cc68 if (!GoogleUpdateSettings::GetMetricsId(&old_wstr) ||
70 GoogleUpdateSettings::SetMetricsId(wstr);
87 if (GoogleUpdateSettings::GetMetricsId(&wstr_client_id))
H A Dchild_process_logging_linux.cc49 GoogleUpdateSettings::SetMetricsId(wstr);
/external/chromium/chrome/browser/search_engines/
H A Dsearch_terms_data.cc82 if (GoogleUpdateSettings::GetBrand(&brand) && !brand.empty() &&
83 !GoogleUpdateSettings::IsOrganic(brand)) {
/external/chromium/chrome/browser/rlz/
H A Drlz.cc138 GoogleUpdateSettings::GetLanguage(&lang);
142 GoogleUpdateSettings::GetBrand(&brand);
144 GoogleUpdateSettings::GetReferral(&referral);
148 GoogleUpdateSettings::ClearReferral();
177 if (!GoogleUpdateSettings::GetBrand(&brand) || brand.empty() ||
178 GoogleUpdateSettings::IsOrganic(brand))
/external/chromium_org/chrome/app/
H A Dclient_util.cc72 GoogleUpdateSettings::GetMetricsId(&metrics_id);
117 const string16 channel(GoogleUpdateSettings::GetChromeChannel(
118 GoogleUpdateSettings::IsSystemInstall()));
181 GoogleUpdateSettings::UpdateDidRunState(true, system_level);
186 GoogleUpdateSettings::UpdateDidRunState(false, system_level);
H A Dchrome_breakpad_client.cc136 GoogleUpdateSettings::GetChromeChannelAndModifiers(
180 Version update_version = GoogleUpdateSettings::GetGoogleUpdateVersion(
195 GoogleUpdateSettings::GetChromeChannel(!is_per_user_install)));
373 return is_chrome_build && GoogleUpdateSettings::GetCollectStatsConsent();
/external/chromium/chrome/browser/ui/options/
H A Doptions_util.cc112 // GoogleUpdateSettings touches the disk from the UI thread. MetricsService
113 // also calls GoogleUpdateSettings below. http://crbug/62626
116 GoogleUpdateSettings::SetCollectStatsConsent(enabled);
117 bool update_pref = GoogleUpdateSettings::GetCollectStatsConsent();
123 // Only change the pref if GoogleUpdateSettings::GetCollectStatsConsent
/external/chromium_org/chrome/browser/metrics/
H A Dmetrics_log.h64 GoogleUpdateSettings::ProductData google_update_data;
66 GoogleUpdateSettings::ProductData product_data;
/external/chromium_org/chrome/browser/ui/gtk/
H A Dfirst_run_dialog.cc138 if (GoogleUpdateSettings::SetCollectStatsConsent(true))
141 GoogleUpdateSettings::SetCollectStatsConsent(false);

Completed in 403 milliseconds

123