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

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

Issue 184563006: Move WriteFile and WriteFileDescriptor from file_util to base namespace. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 6 years, 9 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 550 matching lines...) Expand 10 before | Expand all | Expand 10 after
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
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
OLDNEW
« no previous file with comments | « chrome/browser/feedback/feedback_util.cc ('k') | chrome/browser/first_run/first_run_browsertest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698