OLD | NEW |
1 // Copyright 2012 The Chromium Authors. All rights reserved. | 1 // Copyright 2012 The Chromium Authors. All rights reserved. |
2 // Use of this source code is governed by a BSD-style license that can be | 2 // Use of this source code is governed by a BSD-style license that can be |
3 // found in the LICENSE file. | 3 // found in the LICENSE file. |
4 | 4 |
5 #include "chrome/browser/prefs/browser_prefs.h" | 5 #include "chrome/browser/prefs/browser_prefs.h" |
6 | 6 |
7 #include <string> | 7 #include <string> |
8 | 8 |
9 #include "base/files/file_util.h" | 9 #include "base/files/file_util.h" |
10 #include "base/metrics/histogram_macros.h" | 10 #include "base/metrics/histogram_macros.h" |
(...skipping 563 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
574 ContentSuggestionsNotifierService::RegisterProfilePrefs(registry); | 574 ContentSuggestionsNotifierService::RegisterProfilePrefs(registry); |
575 DownloadSuggestionsProvider::RegisterProfilePrefs(registry); | 575 DownloadSuggestionsProvider::RegisterProfilePrefs(registry); |
576 ntp_snippets::ClickBasedCategoryRanker::RegisterProfilePrefs(registry); | 576 ntp_snippets::ClickBasedCategoryRanker::RegisterProfilePrefs(registry); |
577 ntp_snippets::PhysicalWebPageSuggestionsProvider::RegisterProfilePrefs( | 577 ntp_snippets::PhysicalWebPageSuggestionsProvider::RegisterProfilePrefs( |
578 registry); | 578 registry); |
579 ntp_snippets::RecentTabSuggestionsProvider::RegisterProfilePrefs(registry); | 579 ntp_snippets::RecentTabSuggestionsProvider::RegisterProfilePrefs(registry); |
580 #endif // defined(OS_ANDROID) | 580 #endif // defined(OS_ANDROID) |
581 | 581 |
582 #if !defined(OS_ANDROID) | 582 #if !defined(OS_ANDROID) |
583 browser_sync::ForeignSessionHandler::RegisterProfilePrefs(registry); | 583 browser_sync::ForeignSessionHandler::RegisterProfilePrefs(registry); |
| 584 first_run::RegisterProfilePrefs(registry); |
584 gcm::GCMChannelStatusSyncer::RegisterProfilePrefs(registry); | 585 gcm::GCMChannelStatusSyncer::RegisterProfilePrefs(registry); |
585 gcm::RegisterProfilePrefs(registry); | 586 gcm::RegisterProfilePrefs(registry); |
586 StartupBrowserCreator::RegisterProfilePrefs(registry); | 587 StartupBrowserCreator::RegisterProfilePrefs(registry); |
587 #endif | 588 #endif |
588 | 589 |
589 #if !defined(OS_ANDROID) && !defined(OS_CHROMEOS) | 590 #if !defined(OS_ANDROID) && !defined(OS_CHROMEOS) |
590 default_apps::RegisterProfilePrefs(registry); | 591 default_apps::RegisterProfilePrefs(registry); |
591 #endif | 592 #endif |
592 | 593 |
593 #if defined(OS_CHROMEOS) | 594 #if defined(OS_CHROMEOS) |
(...skipping 189 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
783 if (distro_dict && | 784 if (distro_dict && |
784 distro_dict->GetInteger(kDistroRlzPingDelay, &rlz_ping_delay)) { | 785 distro_dict->GetInteger(kDistroRlzPingDelay, &rlz_ping_delay)) { |
785 profile_prefs->SetInteger(prefs::kRlzPingDelaySeconds, rlz_ping_delay); | 786 profile_prefs->SetInteger(prefs::kRlzPingDelaySeconds, rlz_ping_delay); |
786 } | 787 } |
787 #endif // BUILDFLAG(ENABLE_RLZ) | 788 #endif // BUILDFLAG(ENABLE_RLZ) |
788 profile_prefs->ClearPref(kDistroDict); | 789 profile_prefs->ClearPref(kDistroDict); |
789 } | 790 } |
790 } | 791 } |
791 | 792 |
792 } // namespace chrome | 793 } // namespace chrome |
OLD | NEW |