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 "content/public/app/content_main_runner.h" | 5 #include "content/public/app/content_main_runner.h" |
6 | 6 |
7 #include <stdlib.h> | 7 #include <stdlib.h> |
8 | 8 |
9 #include "base/allocator/allocator_extension.h" | 9 #include "base/allocator/allocator_extension.h" |
10 #include "base/at_exit.h" | 10 #include "base/at_exit.h" |
(...skipping 115 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
126 // This means we are running in an input desktop, which implies WinSta0. | 126 // This means we are running in an input desktop, which implies WinSta0. |
127 ::CloseDesktop(desktop_handle); | 127 ::CloseDesktop(desktop_handle); |
128 return; | 128 return; |
129 } | 129 } |
130 | 130 |
131 HWINSTA current_station = ::GetProcessWindowStation(); | 131 HWINSTA current_station = ::GetProcessWindowStation(); |
132 DCHECK(current_station); | 132 DCHECK(current_station); |
133 | 133 |
134 HWINSTA winsta0 = ::OpenWindowStationA("WinSta0", FALSE, GENERIC_READ); | 134 HWINSTA winsta0 = ::OpenWindowStationA("WinSta0", FALSE, GENERIC_READ); |
135 if (!winsta0) { | 135 if (!winsta0) { |
136 DLOG(INFO) << "Unable to open to WinSta0, we: "<< ::GetLastError(); | 136 DVLOG(0) << "Unable to open to WinSta0, we: "<< ::GetLastError(); |
137 return; | 137 return; |
138 } | 138 } |
139 if (!::SetProcessWindowStation(winsta0)) { | 139 if (!::SetProcessWindowStation(winsta0)) { |
140 // Could not set the alternate window station. There is a possibility | 140 // Could not set the alternate window station. There is a possibility |
141 // that the theme wont be correctly initialized. | 141 // that the theme wont be correctly initialized. |
142 NOTREACHED() << "Unable to switch to WinSta0, we: "<< ::GetLastError(); | 142 NOTREACHED() << "Unable to switch to WinSta0, we: "<< ::GetLastError(); |
143 } | 143 } |
144 | 144 |
145 HWND window = ::CreateWindowExW(0, L"Static", L"", WS_POPUP | WS_DISABLED, | 145 HWND window = ::CreateWindowExW(0, L"Static", L"", WS_POPUP | WS_DISABLED, |
146 CW_USEDEFAULT, 0, 0, 0, HWND_MESSAGE, NULL, | 146 CW_USEDEFAULT, 0, 0, 0, HWND_MESSAGE, NULL, |
(...skipping 688 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
835 | 835 |
836 DISALLOW_COPY_AND_ASSIGN(ContentMainRunnerImpl); | 836 DISALLOW_COPY_AND_ASSIGN(ContentMainRunnerImpl); |
837 }; | 837 }; |
838 | 838 |
839 // static | 839 // static |
840 ContentMainRunner* ContentMainRunner::Create() { | 840 ContentMainRunner* ContentMainRunner::Create() { |
841 return new ContentMainRunnerImpl(); | 841 return new ContentMainRunnerImpl(); |
842 } | 842 } |
843 | 843 |
844 } // namespace content | 844 } // namespace content |
OLD | NEW |