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

Unified Diff: chrome/browser/chrome_browser_parts_aura.cc

Issue 8566054: Set up desktop in proper location; fix notification initialization. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 9 years, 1 month 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
« no previous file with comments | « chrome/browser/chrome_browser_parts_aura.h ('k') | chrome/browser/chrome_browser_parts_views.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/browser/chrome_browser_parts_aura.cc
diff --git a/chrome/browser/chrome_browser_parts_aura.cc b/chrome/browser/chrome_browser_parts_aura.cc
index a2907e15611084e1a90330d84b716245dd5ff1a2..98ec3a5162966990284ed5b14b054bd61674c6f3 100644
--- a/chrome/browser/chrome_browser_parts_aura.cc
+++ b/chrome/browser/chrome_browser_parts_aura.cc
@@ -31,13 +31,6 @@ void ChromeBrowserPartsAura::PostMainMessageLoopStart() {
}
void ChromeBrowserPartsAura::PreMainMessageLoopRun() {
-#if defined(OS_CHROMEOS)
- if (chromeos::system::runtime_environment::IsRunningOnChromeOS())
- aura::Desktop::set_use_fullscreen_host_window(true);
-#endif
-
- // Shell takes ownership of ChromeShellDelegate.
- aura_shell::Shell::CreateInstance(new ChromeShellDelegate);
}
bool ChromeBrowserPartsAura::MainMessageLoopRun(int* result_code) {
@@ -46,3 +39,15 @@ bool ChromeBrowserPartsAura::MainMessageLoopRun(int* result_code) {
void ChromeBrowserPartsAura::PostMainMessageLoopRun() {
}
+
+// TODO(stevenjb): Move this into a chrome specific stage instead of calling
+// directly from ChromeBrowserMainParts::PreMainMessageLoopRun().
+void ChromeBrowserPartsAura::SetupDesktop() {
+#if defined(OS_CHROMEOS)
+ if (chromeos::system::runtime_environment::IsRunningOnChromeOS())
+ aura::Desktop::set_use_fullscreen_host_window(true);
+#endif
+
+ // Shell takes ownership of ChromeShellDelegate.
+ aura_shell::Shell::CreateInstance(new ChromeShellDelegate);
+}
« no previous file with comments | « chrome/browser/chrome_browser_parts_aura.h ('k') | chrome/browser/chrome_browser_parts_views.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698