| 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 // chrome_frame_helper_main.cc : The .exe that bootstraps the | 5 // chrome_frame_helper_main.cc : The .exe that bootstraps the |
| 6 // chrome_frame_helper.dll. | 6 // chrome_frame_helper.dll. |
| 7 // | 7 // |
| 8 // This is a small exe that loads the hook dll to set the event hooks and then | 8 // This is a small exe that loads the hook dll to set the event hooks and then |
| 9 // waits in a message loop. It is intended to be shut down by looking for a | 9 // waits in a message loop. It is intended to be shut down by looking for a |
| 10 // window with the class and title | 10 // window with the class and title |
| (...skipping 205 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 216 } | 216 } |
| 217 | 217 |
| 218 void WaitCallback() { | 218 void WaitCallback() { |
| 219 // Check if the Chrome Frame BHO is now in the list of registered BHOs: | 219 // Check if the Chrome Frame BHO is now in the list of registered BHOs: |
| 220 if (IsBHOLoadingPolicyRegistered()) { | 220 if (IsBHOLoadingPolicyRegistered()) { |
| 221 PostMessage(g_hwnd, kRegistryWatcherChangeMessage, 0, 0); | 221 PostMessage(g_hwnd, kRegistryWatcherChangeMessage, 0, 0); |
| 222 } | 222 } |
| 223 } | 223 } |
| 224 | 224 |
| 225 int APIENTRY wWinMain(HINSTANCE hinstance, HINSTANCE, wchar_t*, int show_cmd) { | 225 int APIENTRY wWinMain(HINSTANCE hinstance, HINSTANCE, wchar_t*, int show_cmd) { |
| 226 const wchar_t* cmd_line = ::GetCommandLine(); | |
| 227 google_breakpad::scoped_ptr<google_breakpad::ExceptionHandler> breakpad( | 226 google_breakpad::scoped_ptr<google_breakpad::ExceptionHandler> breakpad( |
| 228 InitializeCrashReporting(cmd_line)); | 227 InitializeCrashReporting(NORMAL)); |
| 229 | 228 |
| 230 if (IsSystemLevelChromeFrameInstalled()) { | 229 if (IsSystemLevelChromeFrameInstalled()) { |
| 231 // If we're running at startup, check for system-level Chrome Frame | 230 // If we're running at startup, check for system-level Chrome Frame |
| 232 // installations. If we have one, time | 231 // installations. If we have one, time |
| 233 // to bail, also schedule user-level CF to be uninstalled at next logon. | 232 // to bail, also schedule user-level CF to be uninstalled at next logon. |
| 234 const wchar_t* cmd_line = ::GetCommandLine(); | 233 const wchar_t* cmd_line = ::GetCommandLine(); |
| 235 if (cmd_line && wcsstr(cmd_line, kStartupArg) != NULL) { | 234 if (cmd_line && wcsstr(cmd_line, kStartupArg) != NULL) { |
| 236 bool uninstalled = UninstallUserLevelChromeFrame(); | 235 bool uninstalled = UninstallUserLevelChromeFrame(); |
| 237 _ASSERTE(uninstalled); | 236 _ASSERTE(uninstalled); |
| 238 } | 237 } |
| (...skipping 26 matching lines...) Expand all Loading... |
| 265 } else { | 264 } else { |
| 266 TranslateMessage(&msg); | 265 TranslateMessage(&msg); |
| 267 DispatchMessage(&msg); | 266 DispatchMessage(&msg); |
| 268 } | 267 } |
| 269 } | 268 } |
| 270 } | 269 } |
| 271 | 270 |
| 272 UnregisterClass(kChromeFrameHelperWindowClassName, hinstance); | 271 UnregisterClass(kChromeFrameHelperWindowClassName, hinstance); |
| 273 return 0; | 272 return 0; |
| 274 } | 273 } |
| OLD | NEW |