| OLD | NEW |
| 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/upgrade_util.h" | 5 #include "chrome/browser/first_run/upgrade_util.h" |
| 6 | 6 |
| 7 #include <windows.h> | 7 #include <windows.h> |
| 8 #include <psapi.h> | 8 #include <psapi.h> |
| 9 #include <shellapi.h> | 9 #include <shellapi.h> |
| 10 | 10 |
| 11 #include <algorithm> | 11 #include <algorithm> |
| 12 #include <string> | 12 #include <string> |
| 13 | 13 |
| 14 #include "base/base_paths.h" | 14 #include "base/base_paths.h" |
| 15 #include "base/command_line.h" | 15 #include "base/command_line.h" |
| 16 #include "base/environment.h" | 16 #include "base/environment.h" |
| 17 #include "base/files/file_path.h" | 17 #include "base/files/file_path.h" |
| 18 #include "base/files/file_util.h" | 18 #include "base/files/file_util.h" |
| 19 #include "base/logging.h" | 19 #include "base/logging.h" |
| 20 #include "base/macros.h" |
| 20 #include "base/path_service.h" | 21 #include "base/path_service.h" |
| 21 #include "base/prefs/pref_service.h" | 22 #include "base/prefs/pref_service.h" |
| 22 #include "base/process/launch.h" | 23 #include "base/process/launch.h" |
| 23 #include "base/process/process_handle.h" | 24 #include "base/process/process_handle.h" |
| 24 #include "base/strings/string_number_conversions.h" | 25 #include "base/strings/string_number_conversions.h" |
| 25 #include "base/strings/string_util.h" | 26 #include "base/strings/string_util.h" |
| 26 #include "base/strings/stringprintf.h" | 27 #include "base/strings/stringprintf.h" |
| 27 #include "base/win/metro.h" | 28 #include "base/win/metro.h" |
| 28 #include "base/win/registry.h" | 29 #include "base/win/registry.h" |
| 29 #include "base/win/scoped_comptr.h" | 30 #include "base/win/scoped_comptr.h" |
| (...skipping 283 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 313 return false; | 314 return false; |
| 314 // At this point the chrome.exe has been swapped with the new one. | 315 // At this point the chrome.exe has been swapped with the new one. |
| 315 if (!RelaunchChromeBrowser(command_line)) { | 316 if (!RelaunchChromeBrowser(command_line)) { |
| 316 // The re-launch fails. Feel free to panic now. | 317 // The re-launch fails. Feel free to panic now. |
| 317 NOTREACHED(); | 318 NOTREACHED(); |
| 318 } | 319 } |
| 319 return true; | 320 return true; |
| 320 } | 321 } |
| 321 | 322 |
| 322 } // namespace upgrade_util | 323 } // namespace upgrade_util |
| OLD | NEW |