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 202 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
213 } | 213 } |
214 } | 214 } |
215 | 215 |
216 int ChromeBrowserMainPartsWin::PreCreateThreads() { | 216 int ChromeBrowserMainPartsWin::PreCreateThreads() { |
217 int rv = ChromeBrowserMainParts::PreCreateThreads(); | 217 int rv = ChromeBrowserMainParts::PreCreateThreads(); |
218 | 218 |
219 if (IsSafeModeStart()) { | 219 if (IsSafeModeStart()) { |
220 // TODO(cpu): disable other troublesome features for safe mode. | 220 // TODO(cpu): disable other troublesome features for safe mode. |
221 CommandLine::ForCurrentProcess()->AppendSwitch( | 221 CommandLine::ForCurrentProcess()->AppendSwitch( |
222 switches::kDisableGpu); | 222 switches::kDisableGpu); |
223 CommandLine::ForCurrentProcess()->AppendSwitchASCII( | |
224 switches::kHighDPISupport, "0"); | |
225 } | 223 } |
226 // TODO(viettrungluu): why don't we run this earlier? | 224 // TODO(viettrungluu): why don't we run this earlier? |
227 if (!parsed_command_line().HasSwitch(switches::kNoErrorDialogs) && | 225 if (!parsed_command_line().HasSwitch(switches::kNoErrorDialogs) && |
228 base::win::GetVersion() < base::win::VERSION_XP) { | 226 base::win::GetVersion() < base::win::VERSION_XP) { |
229 chrome::ShowMessageBox(NULL, | 227 chrome::ShowMessageBox(NULL, |
230 l10n_util::GetStringUTF16(IDS_PRODUCT_NAME), | 228 l10n_util::GetStringUTF16(IDS_PRODUCT_NAME), |
231 l10n_util::GetStringUTF16(IDS_UNSUPPORTED_OS_PRE_WIN_XP), | 229 l10n_util::GetStringUTF16(IDS_UNSUPPORTED_OS_PRE_WIN_XP), |
232 chrome::MESSAGE_BOX_TYPE_WARNING); | 230 chrome::MESSAGE_BOX_TYPE_WARNING); |
233 } | 231 } |
234 | 232 |
(...skipping 201 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
436 if (resource_id) | 434 if (resource_id) |
437 return l10n_util::GetStringUTF16(resource_id); | 435 return l10n_util::GetStringUTF16(resource_id); |
438 return base::string16(); | 436 return base::string16(); |
439 } | 437 } |
440 | 438 |
441 // static | 439 // static |
442 void ChromeBrowserMainPartsWin::SetupInstallerUtilStrings() { | 440 void ChromeBrowserMainPartsWin::SetupInstallerUtilStrings() { |
443 CR_DEFINE_STATIC_LOCAL(TranslationDelegate, delegate, ()); | 441 CR_DEFINE_STATIC_LOCAL(TranslationDelegate, delegate, ()); |
444 installer::SetTranslationDelegate(&delegate); | 442 installer::SetTranslationDelegate(&delegate); |
445 } | 443 } |
OLD | NEW |