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

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

Issue 10081022: Aura/ash split: Remove hacks and get chrome linking without ash. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 8 years, 8 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
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_extra_parts_aura.h" 5 #include "chrome/browser/chrome_browser_main_extra_parts_aura.h"
6 6
7 #include "ui/aura/env.h" 7 #include "ui/aura/env.h"
8 8
9 #if !defined(USE_ASH)
10 #include "ui/aura/desktop/desktop_stacking_client.h"
11 #include "ui/views/widget/native_widget_aura.h"
12 #endif // !USE_ASH
13
9 ChromeBrowserMainExtraPartsAura::ChromeBrowserMainExtraPartsAura() 14 ChromeBrowserMainExtraPartsAura::ChromeBrowserMainExtraPartsAura()
10 : ChromeBrowserMainExtraParts() { 15 : ChromeBrowserMainExtraParts() {
11 } 16 }
12 17
18 void ChromeBrowserMainExtraPartsAura::PreProfileInit() {
19 #if !defined(USE_ASH)
20 stacking_client_.reset(new aura::DesktopStackingClient);
21 views::NativeWidgetAura::set_aura_desktop_hax();
Ben Goodger (Google) 2012/04/13 22:57:03 can you give this a proper name at least?
22 #endif // !USE_ASH
23 }
24
13 void ChromeBrowserMainExtraPartsAura::PostMainMessageLoopRun() { 25 void ChromeBrowserMainExtraPartsAura::PostMainMessageLoopRun() {
26 #if !defined(USE_ASH)
27 stacking_client_.reset();
28 #endif
29
14 // aura::Env instance is deleted in BrowserProcessImpl::StartTearDown 30 // aura::Env instance is deleted in BrowserProcessImpl::StartTearDown
15 // after the metrics service is deleted. 31 // after the metrics service is deleted.
16 } 32 }
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698