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

Unified Diff: chrome/browser/ui/browser.cc

Issue 9359022: Aura: Support hovering restore & close buttons for full screen apps (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Remove resources, as they've already been committed Created 8 years, 10 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/browser.cc
diff --git a/chrome/browser/ui/browser.cc b/chrome/browser/ui/browser.cc
index 8c71cbf8becf8aeea41f4564b3d6e8673d457dd4..176c29ad44f7cf8e502ae948c2625fd7dad81953 100644
--- a/chrome/browser/ui/browser.cc
+++ b/chrome/browser/ui/browser.cc
@@ -506,6 +506,10 @@ Browser* Browser::CreateForApp(Type type,
#endif // TOOLKIT_GTK
#endif // !OS_CHROMEOS || USE_AURA
+#if defined(USE_AURA)
+ type = TYPE_APP;
+#endif
+
CreateParams params(type, profile);
params.app_name = app_name;
params.initial_bounds = window_bounds;
@@ -591,7 +595,7 @@ bool Browser::HasFindBarController() const {
}
bool Browser::is_app() const {
- return !app_name_.empty();
+ return type_ == TYPE_APP || !app_name_.empty();
}
bool Browser::is_devtools() const {

Powered by Google App Engine
This is Rietveld 408576698