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

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

Issue 18199003: Allow Chrome OS login profile to have different default pref values (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Comment addressed. Created 7 years, 5 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 | Annotate | Revision Log
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 474 matching lines...) Expand 10 before | Expand all | Expand 10 after
485 return false; 485 return false;
486 return file_util::WriteFile(first_run_sentinel, "", 0) != -1; 486 return file_util::WriteFile(first_run_sentinel, "", 0) != -1;
487 } 487 }
488 488
489 std::string GetPingDelayPrefName() { 489 std::string GetPingDelayPrefName() {
490 return base::StringPrintf("%s.%s", 490 return base::StringPrintf("%s.%s",
491 installer::master_preferences::kDistroDict, 491 installer::master_preferences::kDistroDict,
492 installer::master_preferences::kDistroPingDelay); 492 installer::master_preferences::kDistroPingDelay);
493 } 493 }
494 494
495 void RegisterUserPrefs(user_prefs::PrefRegistrySyncable* registry) { 495 void RegisterProfilePrefs(user_prefs::PrefRegistrySyncable* registry) {
496 registry->RegisterIntegerPref( 496 registry->RegisterIntegerPref(
497 GetPingDelayPrefName().c_str(), 497 GetPingDelayPrefName().c_str(),
498 0, 498 0,
499 user_prefs::PrefRegistrySyncable::UNSYNCABLE_PREF); 499 user_prefs::PrefRegistrySyncable::UNSYNCABLE_PREF);
500 } 500 }
501 501
502 bool RemoveSentinel() { 502 bool RemoveSentinel() {
503 base::FilePath first_run_sentinel; 503 base::FilePath first_run_sentinel;
504 if (!internal::GetFirstRunSentinelFilePath(&first_run_sentinel)) 504 if (!internal::GetFirstRunSentinelFilePath(&first_run_sentinel))
505 return false; 505 return false;
(...skipping 263 matching lines...) Expand 10 before | Expand all | Expand 10 after
769 SetShouldDoPersonalDataManagerFirstRun(); 769 SetShouldDoPersonalDataManagerFirstRun();
770 770
771 internal::DoPostImportPlatformSpecificTasks(profile); 771 internal::DoPostImportPlatformSpecificTasks(profile);
772 } 772 }
773 773
774 uint16 auto_import_state() { 774 uint16 auto_import_state() {
775 return g_auto_import_state; 775 return g_auto_import_state;
776 } 776 }
777 777
778 } // namespace first_run 778 } // namespace first_run
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698