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

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: Rebased. 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 473 matching lines...) Expand 10 before | Expand all | Expand 10 after
484 return false; 484 return false;
485 return file_util::WriteFile(first_run_sentinel, "", 0) != -1; 485 return file_util::WriteFile(first_run_sentinel, "", 0) != -1;
486 } 486 }
487 487
488 std::string GetPingDelayPrefName() { 488 std::string GetPingDelayPrefName() {
489 return base::StringPrintf("%s.%s", 489 return base::StringPrintf("%s.%s",
490 installer::master_preferences::kDistroDict, 490 installer::master_preferences::kDistroDict,
491 installer::master_preferences::kDistroPingDelay); 491 installer::master_preferences::kDistroPingDelay);
492 } 492 }
493 493
494 void RegisterUserPrefs(user_prefs::PrefRegistrySyncable* registry) { 494 void RegisterProfilePrefs(user_prefs::PrefRegistrySyncable* registry) {
495 registry->RegisterIntegerPref( 495 registry->RegisterIntegerPref(
496 GetPingDelayPrefName().c_str(), 496 GetPingDelayPrefName().c_str(),
497 0, 497 0,
498 user_prefs::PrefRegistrySyncable::UNSYNCABLE_PREF); 498 user_prefs::PrefRegistrySyncable::UNSYNCABLE_PREF);
499 } 499 }
500 500
501 bool RemoveSentinel() { 501 bool RemoveSentinel() {
502 base::FilePath first_run_sentinel; 502 base::FilePath first_run_sentinel;
503 if (!internal::GetFirstRunSentinelFilePath(&first_run_sentinel)) 503 if (!internal::GetFirstRunSentinelFilePath(&first_run_sentinel))
504 return false; 504 return false;
(...skipping 264 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
« no previous file with comments | « chrome/browser/first_run/first_run.h ('k') | chrome/browser/geolocation/chrome_geolocation_permission_context_factory.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698