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 550 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
561 | 561 |
562 install_prefs.GetString( | 562 install_prefs.GetString( |
563 installer::master_preferences::kDistroSuppressDefaultBrowserPromptPref, | 563 installer::master_preferences::kDistroSuppressDefaultBrowserPromptPref, |
564 &out_prefs->suppress_default_browser_prompt_for_version); | 564 &out_prefs->suppress_default_browser_prompt_for_version); |
565 } | 565 } |
566 | 566 |
567 bool CreateSentinel() { | 567 bool CreateSentinel() { |
568 base::FilePath first_run_sentinel; | 568 base::FilePath first_run_sentinel; |
569 if (!internal::GetFirstRunSentinelFilePath(&first_run_sentinel)) | 569 if (!internal::GetFirstRunSentinelFilePath(&first_run_sentinel)) |
570 return false; | 570 return false; |
571 return file_util::WriteFile(first_run_sentinel, "", 0) != -1; | 571 return base::WriteFile(first_run_sentinel, "", 0) != -1; |
572 } | 572 } |
573 | 573 |
574 // -- Platform-specific functions -- | 574 // -- Platform-specific functions -- |
575 | 575 |
576 #if !defined(OS_LINUX) && !defined(OS_BSD) | 576 #if !defined(OS_LINUX) && !defined(OS_BSD) |
577 bool IsOrganicFirstRun() { | 577 bool IsOrganicFirstRun() { |
578 std::string brand; | 578 std::string brand; |
579 google_util::GetBrand(&brand); | 579 google_util::GetBrand(&brand); |
580 return google_util::IsOrganicFirstRun(brand); | 580 return google_util::IsOrganicFirstRun(brand); |
581 } | 581 } |
(...skipping 232 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
814 SetShouldDoPersonalDataManagerFirstRun(); | 814 SetShouldDoPersonalDataManagerFirstRun(); |
815 | 815 |
816 internal::DoPostImportPlatformSpecificTasks(profile); | 816 internal::DoPostImportPlatformSpecificTasks(profile); |
817 } | 817 } |
818 | 818 |
819 uint16 auto_import_state() { | 819 uint16 auto_import_state() { |
820 return g_auto_import_state; | 820 return g_auto_import_state; |
821 } | 821 } |
822 | 822 |
823 } // namespace first_run | 823 } // namespace first_run |
OLD | NEW |