OLD | NEW |
1 // Copyright (c) 2011 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2011 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 23 matching lines...) Expand all Loading... |
34 #include "chrome/installer/util/shell_util.h" | 34 #include "chrome/installer/util/shell_util.h" |
35 #include "content/public/common/main_function_params.h" | 35 #include "content/public/common/main_function_params.h" |
36 #include "grit/app_locale_settings.h" | 36 #include "grit/app_locale_settings.h" |
37 #include "grit/chromium_strings.h" | 37 #include "grit/chromium_strings.h" |
38 #include "grit/generated_resources.h" | 38 #include "grit/generated_resources.h" |
39 #include "ui/base/l10n/l10n_util.h" | 39 #include "ui/base/l10n/l10n_util.h" |
40 #include "ui/base/l10n/l10n_util_win.h" | 40 #include "ui/base/l10n/l10n_util_win.h" |
41 #include "ui/base/message_box_win.h" | 41 #include "ui/base/message_box_win.h" |
42 #include "ui/gfx/platform_font_win.h" | 42 #include "ui/gfx/platform_font_win.h" |
43 #include "ui/views/focus/accelerator_handler.h" | 43 #include "ui/views/focus/accelerator_handler.h" |
44 #include "views/widget/widget.h" | 44 #include "ui/views/widget/widget.h" |
45 | 45 |
46 namespace { | 46 namespace { |
47 | 47 |
48 typedef HRESULT (STDAPICALLTYPE* RegisterApplicationRestartProc)( | 48 typedef HRESULT (STDAPICALLTYPE* RegisterApplicationRestartProc)( |
49 const wchar_t* command_line, | 49 const wchar_t* command_line, |
50 DWORD flags); | 50 DWORD flags); |
51 | 51 |
52 void InitializeWindowProcExceptions() { | 52 void InitializeWindowProcExceptions() { |
53 // Get the breakpad pointer from chrome.exe | 53 // Get the breakpad pointer from chrome.exe |
54 base::win::WinProcExceptionFilter exception_filter = | 54 base::win::WinProcExceptionFilter exception_filter = |
(...skipping 239 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
294 uninstall_cmd.AppendSwitch(installer::switches::kForceUninstall); | 294 uninstall_cmd.AppendSwitch(installer::switches::kForceUninstall); |
295 uninstall_cmd.AppendSwitch( | 295 uninstall_cmd.AppendSwitch( |
296 installer::switches::kDoNotRemoveSharedItems); | 296 installer::switches::kDoNotRemoveSharedItems); |
297 base::LaunchProcess(uninstall_cmd, base::LaunchOptions(), NULL); | 297 base::LaunchProcess(uninstall_cmd, base::LaunchOptions(), NULL); |
298 } | 298 } |
299 return true; | 299 return true; |
300 } | 300 } |
301 } | 301 } |
302 return false; | 302 return false; |
303 } | 303 } |
OLD | NEW |