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/chrome_browser_main_win.h" | 5 #include "chrome/browser/chrome_browser_main_win.h" |
6 | 6 |
7 #include <windows.h> | 7 #include <windows.h> |
8 #include <shellapi.h> | 8 #include <shellapi.h> |
9 | 9 |
10 #include <algorithm> | 10 #include <algorithm> |
(...skipping 22 matching lines...) Expand all Loading... |
33 #include "chrome/installer/util/browser_distribution.h" | 33 #include "chrome/installer/util/browser_distribution.h" |
34 #include "chrome/installer/util/helper.h" | 34 #include "chrome/installer/util/helper.h" |
35 #include "chrome/installer/util/install_util.h" | 35 #include "chrome/installer/util/install_util.h" |
36 #include "chrome/installer/util/shell_util.h" | 36 #include "chrome/installer/util/shell_util.h" |
37 #include "content/public/common/main_function_params.h" | 37 #include "content/public/common/main_function_params.h" |
38 #include "grit/app_locale_settings.h" | 38 #include "grit/app_locale_settings.h" |
39 #include "grit/chromium_strings.h" | 39 #include "grit/chromium_strings.h" |
40 #include "grit/generated_resources.h" | 40 #include "grit/generated_resources.h" |
41 #include "ui/base/l10n/l10n_util.h" | 41 #include "ui/base/l10n/l10n_util.h" |
42 #include "ui/base/l10n/l10n_util_win.h" | 42 #include "ui/base/l10n/l10n_util_win.h" |
43 #include "ui/base/message_box_win.h" | 43 #include "ui/base/win/message_box_win.h" |
44 #include "ui/gfx/platform_font_win.h" | 44 #include "ui/gfx/platform_font_win.h" |
45 #include "ui/views/focus/accelerator_handler.h" | 45 #include "ui/views/focus/accelerator_handler.h" |
46 #include "ui/views/widget/widget.h" | 46 #include "ui/views/widget/widget.h" |
47 | 47 |
48 namespace { | 48 namespace { |
49 | 49 |
50 typedef HRESULT (STDAPICALLTYPE* RegisterApplicationRestartProc)( | 50 typedef HRESULT (STDAPICALLTYPE* RegisterApplicationRestartProc)( |
51 const wchar_t* command_line, | 51 const wchar_t* command_line, |
52 DWORD flags); | 52 DWORD flags); |
53 | 53 |
(...skipping 249 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
303 uninstall_cmd.AppendSwitch(installer::switches::kForceUninstall); | 303 uninstall_cmd.AppendSwitch(installer::switches::kForceUninstall); |
304 uninstall_cmd.AppendSwitch( | 304 uninstall_cmd.AppendSwitch( |
305 installer::switches::kDoNotRemoveSharedItems); | 305 installer::switches::kDoNotRemoveSharedItems); |
306 base::LaunchProcess(uninstall_cmd, base::LaunchOptions(), NULL); | 306 base::LaunchProcess(uninstall_cmd, base::LaunchOptions(), NULL); |
307 } | 307 } |
308 return true; | 308 return true; |
309 } | 309 } |
310 } | 310 } |
311 return false; | 311 return false; |
312 } | 312 } |
OLD | NEW |