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

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

Issue 441803004: Introduce new WebApp header style for hosted apps and fizzy apps on ash. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Put some non-ash code back Created 6 years, 4 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 c8caf5349801c68e8ebece99a5fd294649df5250..16501ab4a171d9e9850556db140d3e3ef690caf8 100644
--- a/chrome/browser/ui/browser.cc
+++ b/chrome/browser/ui/browser.cc
@@ -2290,9 +2290,11 @@ bool Browser::ShouldShowLocationBar() const {
if (is_app()) {
if (CommandLine::ForCurrentProcess()->HasSwitch(
- switches::kEnableStreamlinedHostedApps)) {
+ switches::kEnableStreamlinedHostedApps) &&
+ host_desktop_type() != chrome::HOST_DESKTOP_TYPE_ASH) {
// If kEnableStreamlinedHostedApps is true, show the location bar for
- // bookmark apps.
+ // bookmark apps, except on ash which has the toolbar merged into the
+ // frame.
ExtensionService* service =
extensions::ExtensionSystem::Get(profile_)->extension_service();
const extensions::Extension* extension =

Powered by Google App Engine
This is Rietveld 408576698