Commit bd41a5c2 authored by oshima@chromium.org's avatar oshima@chromium.org

Root window wasn't shown in browser_test.

BUG=115967
TEST=none

Committed: http://src.chromium.org/viewvc/chrome?view=rev&revision=134740

Review URL: https://chromiumcodereview.appspot.com/10273023

git-svn-id: svn://svn.chromium.org/chrome/trunk/src@134821 0039d316-1c4b-4281-b951-d872f2087c98
parent cb122298
...@@ -182,14 +182,6 @@ ...@@ -182,14 +182,6 @@
#include "chrome/browser/chrome_browser_main_x11.h" #include "chrome/browser/chrome_browser_main_x11.h"
#endif #endif
#if defined(USE_AURA)
#include "ui/aura/root_window.h"
#endif
#if defined(USE_ASH)
#include "ash/shell.h"
#endif
using content::BrowserThread; using content::BrowserThread;
namespace { namespace {
...@@ -1897,7 +1889,6 @@ int ChromeBrowserMainParts::PreMainMessageLoopRunImpl() { ...@@ -1897,7 +1889,6 @@ int ChromeBrowserMainParts::PreMainMessageLoopRunImpl() {
bool ChromeBrowserMainParts::MainMessageLoopRun(int* result_code) { bool ChromeBrowserMainParts::MainMessageLoopRun(int* result_code) {
// Set the result code set in PreMainMessageLoopRun or set above. // Set the result code set in PreMainMessageLoopRun or set above.
*result_code = result_code_; *result_code = result_code_;
if (!run_message_loop_) if (!run_message_loop_)
return true; // Don't run the default message loop. return true; // Don't run the default message loop.
...@@ -1905,11 +1896,7 @@ bool ChromeBrowserMainParts::MainMessageLoopRun(int* result_code) { ...@@ -1905,11 +1896,7 @@ bool ChromeBrowserMainParts::MainMessageLoopRun(int* result_code) {
// UI thread message loop as possible to get a stable measurement // UI thread message loop as possible to get a stable measurement
// across versions. // across versions.
RecordBrowserStartupTime(); RecordBrowserStartupTime();
#if defined(USE_AURA) #if defined(USE_AURA)
#if defined(USE_ASH)
ash::Shell::GetRootWindow()->ShowRootWindow();
#endif
MessageLoopForUI::current()->Run(); MessageLoopForUI::current()->Run();
#elif defined(TOOLKIT_VIEWS) #elif defined(TOOLKIT_VIEWS)
views::AcceleratorHandler accelerator_handler; views::AcceleratorHandler accelerator_handler;
......
...@@ -83,6 +83,7 @@ void ChromeBrowserMainExtraPartsAsh::PreProfileInit() { ...@@ -83,6 +83,7 @@ void ChromeBrowserMainExtraPartsAsh::PreProfileInit() {
gesture_handler_.reset(new UserGestureHandler); gesture_handler_.reset(new UserGestureHandler);
aura::client::SetUserGestureClient( aura::client::SetUserGestureClient(
ash::Shell::GetRootWindow(), gesture_handler_.get()); ash::Shell::GetRootWindow(), gesture_handler_.get());
ash::Shell::GetRootWindow()->ShowRootWindow();
} }
void ChromeBrowserMainExtraPartsAsh::PostProfileInit() { void ChromeBrowserMainExtraPartsAsh::PostProfileInit() {
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment