OLD | NEW |
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.h" | 5 #include "chrome/browser/first_run.h" |
6 | 6 |
7 #include "app/app_switches.h" | 7 #include "app/app_switches.h" |
8 #include "app/resource_bundle.h" | |
9 #include "base/file_path.h" | 8 #include "base/file_path.h" |
10 #include "base/file_util.h" | 9 #include "base/file_util.h" |
11 #include "base/path_service.h" | 10 #include "base/path_service.h" |
12 #include "base/process_util.h" | 11 #include "base/process_util.h" |
13 #include "base/string_util.h" | 12 #include "base/string_util.h" |
14 #include "chrome/browser/gtk/first_run_dialog.h" | 13 #include "chrome/browser/gtk/first_run_dialog.h" |
15 #include "chrome/browser/profile_manager.h" | 14 #include "chrome/browser/profile_manager.h" |
16 #include "chrome/browser/shell_integration.h" | 15 #include "chrome/browser/shell_integration.h" |
17 #include "chrome/common/chrome_switches.h" | 16 #include "chrome/common/chrome_switches.h" |
18 #include "chrome/common/pref_names.h" | 17 #include "chrome/common/pref_names.h" |
(...skipping 150 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
169 } | 168 } |
170 file_util::FileInfo exe_file_info; | 169 file_util::FileInfo exe_file_info; |
171 if (!file_util::GetFileInfo(exe_file_path, &exe_file_info)) { | 170 if (!file_util::GetFileInfo(exe_file_path, &exe_file_info)) { |
172 LOG(WARNING) << "Failed to get FileInfo object for FILE_EXE - " | 171 LOG(WARNING) << "Failed to get FileInfo object for FILE_EXE - " |
173 << exe_file_path.value(); | 172 << exe_file_path.value(); |
174 return saved_last_modified_time_of_exe_; | 173 return saved_last_modified_time_of_exe_; |
175 } | 174 } |
176 return exe_file_info.last_modified.ToDoubleT(); | 175 return exe_file_info.last_modified.ToDoubleT(); |
177 } | 176 } |
178 #endif // defined(OS_LINUX) && !defined(OS_CHROMEOS) | 177 #endif // defined(OS_LINUX) && !defined(OS_CHROMEOS) |
OLD | NEW |