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

Side by Side Diff: chrome/browser/first_run/first_run.cc

Issue 1102733002: Remove most occurences of PrefRegistrySyncable::UNSYNCABLE_PREF (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@prefs-add-reg-funcs
Patch Set: Created 5 years, 8 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 unified diff | Download patch
« no previous file with comments | « chrome/browser/extensions/launch_util.cc ('k') | chrome/browser/font_family_cache_unittest.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. 1 // Copyright (c) 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/first_run/first_run.h" 5 #include "chrome/browser/first_run/first_run.h"
6 6
7 #include <algorithm> 7 #include <algorithm>
8 8
9 #include "base/command_line.h" 9 #include "base/command_line.h"
10 #include "base/compiler_specific.h" 10 #include "base/compiler_specific.h"
(...skipping 602 matching lines...) Expand 10 before | Expand all | Expand 10 after
613 internal::CreateSentinel(); 613 internal::CreateSentinel();
614 } 614 }
615 615
616 std::string GetPingDelayPrefName() { 616 std::string GetPingDelayPrefName() {
617 return base::StringPrintf("%s.%s", 617 return base::StringPrintf("%s.%s",
618 installer::master_preferences::kDistroDict, 618 installer::master_preferences::kDistroDict,
619 installer::master_preferences::kDistroPingDelay); 619 installer::master_preferences::kDistroPingDelay);
620 } 620 }
621 621
622 void RegisterProfilePrefs(user_prefs::PrefRegistrySyncable* registry) { 622 void RegisterProfilePrefs(user_prefs::PrefRegistrySyncable* registry) {
623 registry->RegisterIntegerPref( 623 registry->RegisterIntegerPref(GetPingDelayPrefName().c_str(), 0);
624 GetPingDelayPrefName().c_str(),
625 0,
626 user_prefs::PrefRegistrySyncable::UNSYNCABLE_PREF);
627 } 624 }
628 625
629 bool SetShowFirstRunBubblePref(FirstRunBubbleOptions show_bubble_option) { 626 bool SetShowFirstRunBubblePref(FirstRunBubbleOptions show_bubble_option) {
630 PrefService* local_state = g_browser_process->local_state(); 627 PrefService* local_state = g_browser_process->local_state();
631 if (!local_state) 628 if (!local_state)
632 return false; 629 return false;
633 if (local_state->GetInteger( 630 if (local_state->GetInteger(
634 prefs::kShowFirstRunBubbleOption) != FIRST_RUN_BUBBLE_SUPPRESS) { 631 prefs::kShowFirstRunBubbleOption) != FIRST_RUN_BUBBLE_SUPPRESS) {
635 // Set the new state as long as the bubble wasn't explicitly suppressed 632 // Set the new state as long as the bubble wasn't explicitly suppressed
636 // already. 633 // already.
(...skipping 168 matching lines...) Expand 10 before | Expand all | Expand 10 after
805 SetShouldDoPersonalDataManagerFirstRun(); 802 SetShouldDoPersonalDataManagerFirstRun();
806 803
807 internal::DoPostImportPlatformSpecificTasks(profile); 804 internal::DoPostImportPlatformSpecificTasks(profile);
808 } 805 }
809 806
810 uint16 auto_import_state() { 807 uint16 auto_import_state() {
811 return g_auto_import_state; 808 return g_auto_import_state;
812 } 809 }
813 810
814 } // namespace first_run 811 } // namespace first_run
OLDNEW
« no previous file with comments | « chrome/browser/extensions/launch_util.cc ('k') | chrome/browser/font_family_cache_unittest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698