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

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

Issue 18286004: Move PathExists to 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_internal.h" 5 #include "chrome/browser/first_run/first_run_internal.h"
6 6
7 #include "base/file_util.h" 7 #include "base/file_util.h"
8 #include "base/files/file_path.h" 8 #include "base/files/file_path.h"
9 #include "base/path_service.h" 9 #include "base/path_service.h"
10 #include "base/prefs/pref_service.h" 10 #include "base/prefs/pref_service.h"
(...skipping 10 matching lines...) Expand all
21 namespace first_run { 21 namespace first_run {
22 namespace internal { 22 namespace internal {
23 23
24 void DoPostImportPlatformSpecificTasks(Profile* profile) { 24 void DoPostImportPlatformSpecificTasks(Profile* profile) {
25 #if !defined(OS_CHROMEOS) 25 #if !defined(OS_CHROMEOS)
26 // Aura needs a views implementation of the first run dialog for Linux. 26 // Aura needs a views implementation of the first run dialog for Linux.
27 // http://crbug.com/234637 27 // http://crbug.com/234637
28 #if !defined(USE_AURA) 28 #if !defined(USE_AURA)
29 base::FilePath local_state_path; 29 base::FilePath local_state_path;
30 PathService::Get(chrome::FILE_LOCAL_STATE, &local_state_path); 30 PathService::Get(chrome::FILE_LOCAL_STATE, &local_state_path);
31 bool local_state_file_exists = file_util::PathExists(local_state_path); 31 bool local_state_file_exists = base::PathExists(local_state_path);
32 // Launch the first run dialog only for certain builds, and only if the user 32 // Launch the first run dialog only for certain builds, and only if the user
33 // has not already set preferences. 33 // has not already set preferences.
34 if (internal::IsOrganicFirstRun() && !local_state_file_exists) { 34 if (internal::IsOrganicFirstRun() && !local_state_file_exists) {
35 if (ShowFirstRunDialog(profile)) 35 if (ShowFirstRunDialog(profile))
36 startup_metric_utils::SetNonBrowserUIDisplayed(); 36 startup_metric_utils::SetNonBrowserUIDisplayed();
37 } 37 }
38 #endif 38 #endif
39 39
40 // If stats reporting was turned on by the first run dialog then toggle 40 // If stats reporting was turned on by the first run dialog then toggle
41 // the pref (on Windows, the download is tagged with enable/disable stats so 41 // the pref (on Windows, the download is tagged with enable/disable stats so
(...skipping 15 matching lines...) Expand all
57 return true; 57 return true;
58 } 58 }
59 59
60 bool ShowPostInstallEULAIfNeeded(installer::MasterPreferences* install_prefs) { 60 bool ShowPostInstallEULAIfNeeded(installer::MasterPreferences* install_prefs) {
61 // The EULA is only handled on Windows. 61 // The EULA is only handled on Windows.
62 return true; 62 return true;
63 } 63 }
64 64
65 } // namespace internal 65 } // namespace internal
66 } // namespace first_run 66 } // namespace first_run
OLDNEW
« no previous file with comments | « chrome/browser/first_run/first_run.cc ('k') | chrome/browser/first_run/first_run_internal_win.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698