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

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

Issue 3347005: Moving file_util::FileInfo to base::PlatformFileInfo, and adding the... (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: '' Created 10 years, 3 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) 2010 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2010 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 "app/app_switches.h" 7 #include "app/app_switches.h"
8 #include "base/command_line.h" 8 #include "base/command_line.h"
9 #include "base/file_path.h" 9 #include "base/file_path.h"
10 #include "base/file_util.h" 10 #include "base/file_util.h"
(...skipping 106 matching lines...) Expand 10 before | Expand all | Expand 10 after
117 return base::LaunchApp(command_line, false, false, NULL); 117 return base::LaunchApp(command_line, false, false, NULL);
118 } 118 }
119 119
120 // static 120 // static
121 double Upgrade::GetLastModifiedTimeOfExe() { 121 double Upgrade::GetLastModifiedTimeOfExe() {
122 FilePath exe_file_path; 122 FilePath exe_file_path;
123 if (!PathService::Get(base::FILE_EXE, &exe_file_path)) { 123 if (!PathService::Get(base::FILE_EXE, &exe_file_path)) {
124 LOG(WARNING) << "Failed to get FilePath object for FILE_EXE."; 124 LOG(WARNING) << "Failed to get FilePath object for FILE_EXE.";
125 return saved_last_modified_time_of_exe_; 125 return saved_last_modified_time_of_exe_;
126 } 126 }
127 file_util::FileInfo exe_file_info; 127 base::PlatformFileInfo exe_file_info;
128 if (!file_util::GetFileInfo(exe_file_path, &exe_file_info)) { 128 if (!file_util::GetFileInfo(exe_file_path, &exe_file_info)) {
129 LOG(WARNING) << "Failed to get FileInfo object for FILE_EXE - " 129 LOG(WARNING) << "Failed to get FileInfo object for FILE_EXE - "
130 << exe_file_path.value(); 130 << exe_file_path.value();
131 return saved_last_modified_time_of_exe_; 131 return saved_last_modified_time_of_exe_;
132 } 132 }
133 return exe_file_info.last_modified.ToDoubleT(); 133 return exe_file_info.last_modified.ToDoubleT();
134 } 134 }
135 #endif // defined(OS_LINUX) && !defined(OS_CHROMEOS) 135 #endif // defined(OS_LINUX) && !defined(OS_CHROMEOS)
136 136
137 // At least for now, we do profile import in-process on Linux. 137 // At least for now, we do profile import in-process on Linux.
(...skipping 29 matching lines...) Expand all
167 bool FirstRun::IsOrganic() { 167 bool FirstRun::IsOrganic() {
168 // We treat all installs as organic. 168 // We treat all installs as organic.
169 return true; 169 return true;
170 } 170 }
171 171
172 // static 172 // static
173 void FirstRun::PlatformSetup() { 173 void FirstRun::PlatformSetup() {
174 // Things that Windows does here (creating a desktop icon, for example) are 174 // Things that Windows does here (creating a desktop icon, for example) are
175 // handled at install time on Linux. 175 // handled at install time on Linux.
176 } 176 }
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698