| OLD | NEW |
| 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 Loading... |
| 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 Loading... |
| 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 |
| OLD | NEW |