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

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

Issue 16950028: Move file_util::Delete to the base namespace (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: 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 488 matching lines...) Expand 10 before | Expand all | Expand 10 after
499 registry->RegisterIntegerPref( 499 registry->RegisterIntegerPref(
500 GetPingDelayPrefName().c_str(), 500 GetPingDelayPrefName().c_str(),
501 0, 501 0,
502 user_prefs::PrefRegistrySyncable::UNSYNCABLE_PREF); 502 user_prefs::PrefRegistrySyncable::UNSYNCABLE_PREF);
503 } 503 }
504 504
505 bool RemoveSentinel() { 505 bool RemoveSentinel() {
506 base::FilePath first_run_sentinel; 506 base::FilePath first_run_sentinel;
507 if (!internal::GetFirstRunSentinelFilePath(&first_run_sentinel)) 507 if (!internal::GetFirstRunSentinelFilePath(&first_run_sentinel))
508 return false; 508 return false;
509 return file_util::Delete(first_run_sentinel, false); 509 return base::Delete(first_run_sentinel, false);
510 } 510 }
511 511
512 bool SetShowFirstRunBubblePref(FirstRunBubbleOptions show_bubble_option) { 512 bool SetShowFirstRunBubblePref(FirstRunBubbleOptions show_bubble_option) {
513 PrefService* local_state = g_browser_process->local_state(); 513 PrefService* local_state = g_browser_process->local_state();
514 if (!local_state) 514 if (!local_state)
515 return false; 515 return false;
516 if (local_state->GetInteger( 516 if (local_state->GetInteger(
517 prefs::kShowFirstRunBubbleOption) != FIRST_RUN_BUBBLE_SUPPRESS) { 517 prefs::kShowFirstRunBubbleOption) != FIRST_RUN_BUBBLE_SUPPRESS) {
518 // Set the new state as long as the bubble wasn't explicitly suppressed 518 // Set the new state as long as the bubble wasn't explicitly suppressed
519 // already. 519 // already.
(...skipping 252 matching lines...) Expand 10 before | Expand all | Expand 10 after
772 SetShouldDoPersonalDataManagerFirstRun(); 772 SetShouldDoPersonalDataManagerFirstRun();
773 773
774 internal::DoPostImportPlatformSpecificTasks(profile); 774 internal::DoPostImportPlatformSpecificTasks(profile);
775 } 775 }
776 776
777 uint16 auto_import_state() { 777 uint16 auto_import_state() {
778 return g_auto_import_state; 778 return g_auto_import_state;
779 } 779 }
780 780
781 } // namespace first_run 781 } // namespace first_run
OLDNEW
« no previous file with comments | « chrome/browser/extensions/sandboxed_unpacker.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