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

Unified Diff: chrome/browser/ui/views/ash/chrome_browser_main_extra_parts_ash.cc

Issue 1839223003: Add basic Chrome interaction with the mash shelf. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Move chrome_launcher_prefs from ash to aura. Created 4 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 side-by-side diff with in-line comments
Download patch
Index: chrome/browser/ui/views/ash/chrome_browser_main_extra_parts_ash.cc
diff --git a/chrome/browser/ui/views/ash/chrome_browser_main_extra_parts_ash.cc b/chrome/browser/ui/views/ash/chrome_browser_main_extra_parts_ash.cc
index c356a04e7c81ebeace37f0e9f48f7b1e72592074..430c294f7f73f350a7ed4a8594782aaed9332d47 100644
--- a/chrome/browser/ui/views/ash/chrome_browser_main_extra_parts_ash.cc
+++ b/chrome/browser/ui/views/ash/chrome_browser_main_extra_parts_ash.cc
@@ -26,21 +26,19 @@
#include "chrome/browser/ui/views/select_file_dialog_extension_factory.h"
#endif
-ChromeBrowserMainExtraPartsAsh::ChromeBrowserMainExtraPartsAsh() {
-}
+ChromeBrowserMainExtraPartsAsh::ChromeBrowserMainExtraPartsAsh() {}
-ChromeBrowserMainExtraPartsAsh::~ChromeBrowserMainExtraPartsAsh() {
-}
+ChromeBrowserMainExtraPartsAsh::~ChromeBrowserMainExtraPartsAsh() {}
void ChromeBrowserMainExtraPartsAsh::PreProfileInit() {
if (chrome::ShouldOpenAshOnStartup()) {
chrome::OpenAsh(gfx::kNullAcceleratedWidget);
-
#if defined(OS_LINUX) && !defined(OS_CHROMEOS)
- ash::Shell::GetInstance()->CreateShelf();
- ash::Shell::GetInstance()->ShowShelf();
+ ash::Shell::GetInstance()->CreateShelf();
James Cook 2016/04/06 04:29:52 Hooray for correct (auto) formatting! :-)
+ ash::Shell::GetInstance()->ShowShelf();
#endif
}
+
#if defined(OS_CHROMEOS)
// For OS_CHROMEOS, virtual keyboard needs to be initialized before profile
// initialized. Otherwise, virtual keyboard extension will not load at login
@@ -54,6 +52,9 @@ void ChromeBrowserMainExtraPartsAsh::PreProfileInit() {
}
void ChromeBrowserMainExtraPartsAsh::PostProfileInit() {
+ if (chrome::IsRunningInMash())
+ chrome::InitializeMash();
+
if (!ash::Shell::HasInstance())
return;

Powered by Google App Engine
This is Rietveld 408576698