Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(49)

Side by Side Diff: chrome/browser/chrome_browser_main_win.cc

Issue 10919173: Rename Windows SystemMonitor implementation files. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Fix win unit test Created 8 years, 3 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch | Annotate | Revision Log
« no previous file with comments | « chrome/browser/chrome_browser_main_win.h ('k') | chrome/browser/system_monitor/OWNERS » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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>
11 11
12 #include "base/command_line.h" 12 #include "base/command_line.h"
13 #include "base/environment.h" 13 #include "base/environment.h"
14 #include "base/i18n/rtl.h" 14 #include "base/i18n/rtl.h"
15 #include "base/memory/scoped_ptr.h" 15 #include "base/memory/scoped_ptr.h"
16 #include "base/path_service.h" 16 #include "base/path_service.h"
17 #include "base/scoped_native_library.h" 17 #include "base/scoped_native_library.h"
18 #include "base/string_number_conversions.h" 18 #include "base/string_number_conversions.h"
19 #include "base/utf_string_conversions.h" 19 #include "base/utf_string_conversions.h"
20 #include "base/win/metro.h" 20 #include "base/win/metro.h"
21 #include "base/win/windows_version.h" 21 #include "base/win/windows_version.h"
22 #include "base/win/wrapped_window_proc.h" 22 #include "base/win/wrapped_window_proc.h"
23 #include "chrome/browser/browser_util_win.h" 23 #include "chrome/browser/browser_util_win.h"
24 #include "chrome/browser/first_run/first_run.h" 24 #include "chrome/browser/first_run/first_run.h"
25 #include "chrome/browser/metrics/metrics_service.h" 25 #include "chrome/browser/metrics/metrics_service.h"
26 #include "chrome/browser/profiles/profile_info_cache.h" 26 #include "chrome/browser/profiles/profile_info_cache.h"
27 #include "chrome/browser/profiles/profile_shortcut_manager.h" 27 #include "chrome/browser/profiles/profile_shortcut_manager.h"
28 #include "chrome/browser/system_monitor/media_device_notifications_window_win.h" 28 #include "chrome/browser/system_monitor/removable_device_notifications_window_wi n.h"
29 #include "chrome/browser/ui/simple_message_box.h" 29 #include "chrome/browser/ui/simple_message_box.h"
30 #include "chrome/browser/ui/uninstall_browser_prompt.h" 30 #include "chrome/browser/ui/uninstall_browser_prompt.h"
31 #include "chrome/common/chrome_constants.h" 31 #include "chrome/common/chrome_constants.h"
32 #include "chrome/common/chrome_result_codes.h" 32 #include "chrome/common/chrome_result_codes.h"
33 #include "chrome/common/chrome_switches.h" 33 #include "chrome/common/chrome_switches.h"
34 #include "chrome/common/env_vars.h" 34 #include "chrome/common/env_vars.h"
35 #include "chrome/installer/util/browser_distribution.h" 35 #include "chrome/installer/util/browser_distribution.h"
36 #include "chrome/installer/util/helper.h" 36 #include "chrome/installer/util/helper.h"
37 #include "chrome/installer/util/install_util.h" 37 #include "chrome/installer/util/install_util.h"
38 #include "chrome/installer/util/l10n_string_util.h" 38 #include "chrome/installer/util/l10n_string_util.h"
(...skipping 138 matching lines...) Expand 10 before | Expand all | Expand 10 after
177 void ChromeBrowserMainPartsWin::PreMainMessageLoopStart() { 177 void ChromeBrowserMainPartsWin::PreMainMessageLoopStart() {
178 // installer_util references strings that are normally compiled into 178 // installer_util references strings that are normally compiled into
179 // setup.exe. In Chrome, these strings are in the locale files. 179 // setup.exe. In Chrome, these strings are in the locale files.
180 SetupInstallerUtilStrings(); 180 SetupInstallerUtilStrings();
181 181
182 ChromeBrowserMainParts::PreMainMessageLoopStart(); 182 ChromeBrowserMainParts::PreMainMessageLoopStart();
183 if (!parameters().ui_task) { 183 if (!parameters().ui_task) {
184 // Make sure that we know how to handle exceptions from the message loop. 184 // Make sure that we know how to handle exceptions from the message loop.
185 InitializeWindowProcExceptions(); 185 InitializeWindowProcExceptions();
186 } 186 }
187 media_device_notifications_window_ = 187 removable_device_notifications_window_ =
188 new chrome::MediaDeviceNotificationsWindowWin(); 188 new chrome::RemovableDeviceNotificationsWindowWin();
189 } 189 }
190 190
191 // static 191 // static
192 void ChromeBrowserMainPartsWin::PrepareRestartOnCrashEnviroment( 192 void ChromeBrowserMainPartsWin::PrepareRestartOnCrashEnviroment(
193 const CommandLine& parsed_command_line) { 193 const CommandLine& parsed_command_line) {
194 // Clear this var so child processes don't show the dialog by default. 194 // Clear this var so child processes don't show the dialog by default.
195 scoped_ptr<base::Environment> env(base::Environment::Create()); 195 scoped_ptr<base::Environment> env(base::Environment::Create());
196 env->UnSetVar(env_vars::kShowRestart); 196 env->UnSetVar(env_vars::kShowRestart);
197 197
198 // For non-interactive tests we don't restart on crash. 198 // For non-interactive tests we don't restart on crash.
(...skipping 141 matching lines...) Expand 10 before | Expand all | Expand 10 after
340 if (resource_id) 340 if (resource_id)
341 return l10n_util::GetStringUTF16(resource_id); 341 return l10n_util::GetStringUTF16(resource_id);
342 return string16(); 342 return string16();
343 } 343 }
344 344
345 // static 345 // static
346 void ChromeBrowserMainPartsWin::SetupInstallerUtilStrings() { 346 void ChromeBrowserMainPartsWin::SetupInstallerUtilStrings() {
347 CR_DEFINE_STATIC_LOCAL(TranslationDelegate, delegate, ()); 347 CR_DEFINE_STATIC_LOCAL(TranslationDelegate, delegate, ());
348 installer::SetTranslationDelegate(&delegate); 348 installer::SetTranslationDelegate(&delegate);
349 } 349 }
OLDNEW
« no previous file with comments | « chrome/browser/chrome_browser_main_win.h ('k') | chrome/browser/system_monitor/OWNERS » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698