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

Side by Side Diff: content/browser/browser_main_runner.cc

Issue 137493006: Revert r156303 as non-Aura Metro mode is gone (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 6 years, 10 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
« no previous file with comments | « base/win/metro.cc ('k') | content/public/common/content_switches.h » ('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 "content/public/browser/browser_main_runner.h" 5 #include "content/public/browser/browser_main_runner.h"
6 6
7 #include "base/allocator/allocator_shim.h" 7 #include "base/allocator/allocator_shim.h"
8 #include "base/base_switches.h" 8 #include "base/base_switches.h"
9 #include "base/command_line.h" 9 #include "base/command_line.h"
10 #include "base/debug/leak_annotations.h" 10 #include "base/debug/leak_annotations.h"
11 #include "base/debug/trace_event.h" 11 #include "base/debug/trace_event.h"
12 #include "base/logging.h" 12 #include "base/logging.h"
13 #include "base/metrics/histogram.h" 13 #include "base/metrics/histogram.h"
14 #include "base/metrics/statistics_recorder.h" 14 #include "base/metrics/statistics_recorder.h"
15 #include "content/browser/browser_main_loop.h" 15 #include "content/browser/browser_main_loop.h"
16 #include "content/browser/browser_shutdown_profile_dumper.h" 16 #include "content/browser/browser_shutdown_profile_dumper.h"
17 #include "content/browser/notification_service_impl.h" 17 #include "content/browser/notification_service_impl.h"
18 #include "content/public/common/content_switches.h" 18 #include "content/public/common/content_switches.h"
19 #include "content/public/common/main_function_params.h" 19 #include "content/public/common/main_function_params.h"
20 #include "ui/base/ime/input_method_initializer.h" 20 #include "ui/base/ime/input_method_initializer.h"
21 21
22 #if defined(OS_WIN) 22 #if defined(OS_WIN)
23 #include "base/win/metro.h"
24 #include "base/win/windows_version.h" 23 #include "base/win/windows_version.h"
25 #include "ui/base/win/scoped_ole_initializer.h" 24 #include "ui/base/win/scoped_ole_initializer.h"
26 #endif 25 #endif
27 26
28 bool g_exited_main_message_loop = false; 27 bool g_exited_main_message_loop = false;
29 28
30 namespace content { 29 namespace content {
31 30
32 class BrowserMainRunnerImpl : public BrowserMainRunner { 31 class BrowserMainRunnerImpl : public BrowserMainRunner {
33 public: 32 public:
(...skipping 13 matching lines...) Expand all
47 // not run these parts of initialization twice. 46 // not run these parts of initialization twice.
48 if (!initialization_started_) { 47 if (!initialization_started_) {
49 initialization_started_ = true; 48 initialization_started_ = true;
50 49
51 #if !defined(OS_IOS) 50 #if !defined(OS_IOS)
52 if (parameters.command_line.HasSwitch(switches::kWaitForDebugger)) 51 if (parameters.command_line.HasSwitch(switches::kWaitForDebugger))
53 base::debug::WaitForDebugger(60, true); 52 base::debug::WaitForDebugger(60, true);
54 #endif 53 #endif
55 54
56 #if defined(OS_WIN) 55 #if defined(OS_WIN)
57 if (parameters.command_line.HasSwitch( 56 if (base::win::GetVersion() < base::win::VERSION_VISTA) {
58 switches::kEnableTextServicesFramework)) {
59 base::win::SetForceToUseTSF();
60 } else if (base::win::GetVersion() < base::win::VERSION_VISTA) {
61 // When "Extend support of advanced text services to all programs" 57 // When "Extend support of advanced text services to all programs"
62 // (a.k.a. Cicero Unaware Application Support; CUAS) is enabled on 58 // (a.k.a. Cicero Unaware Application Support; CUAS) is enabled on
63 // Windows XP and handwriting modules shipped with Office 2003 are 59 // Windows XP and handwriting modules shipped with Office 2003 are
64 // installed, "penjpn.dll" and "skchui.dll" will be loaded and then 60 // installed, "penjpn.dll" and "skchui.dll" will be loaded and then
65 // crash 61 // crash unless a user installs Office 2003 SP3. To prevent these
66 // unless a user installs Office 2003 SP3. To prevent these modules from 62 // modules from being loaded, disable TSF entirely. crbug.com/160914.
67 // being loaded, disable TSF entirely. crbug/160914.
68 // TODO(yukawa): Add a high-level wrapper for this instead of calling 63 // TODO(yukawa): Add a high-level wrapper for this instead of calling
69 // Win32 API here directly. 64 // Win32 API here directly.
70 ImmDisableTextFrameService(static_cast<DWORD>(-1)); 65 ImmDisableTextFrameService(static_cast<DWORD>(-1));
71 } 66 }
72 #endif // OS_WIN 67 #endif // OS_WIN
73 68
74 base::StatisticsRecorder::Initialize(); 69 base::StatisticsRecorder::Initialize();
75 70
76 notification_service_.reset(new NotificationServiceImpl); 71 notification_service_.reset(new NotificationServiceImpl);
77 72
(...skipping 99 matching lines...) Expand 10 before | Expand all | Expand 10 after
177 172
178 DISALLOW_COPY_AND_ASSIGN(BrowserMainRunnerImpl); 173 DISALLOW_COPY_AND_ASSIGN(BrowserMainRunnerImpl);
179 }; 174 };
180 175
181 // static 176 // static
182 BrowserMainRunner* BrowserMainRunner::Create() { 177 BrowserMainRunner* BrowserMainRunner::Create() {
183 return new BrowserMainRunnerImpl(); 178 return new BrowserMainRunnerImpl();
184 } 179 }
185 180
186 } // namespace content 181 } // namespace content
OLDNEW
« no previous file with comments | « base/win/metro.cc ('k') | content/public/common/content_switches.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698