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

Side by Side Diff: chrome/browser/ui/browser.cc

Issue 8572022: aura: Fix BrowserInitTest.OpenAppShortcutPanel. (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 unified diff | Download patch | Annotate | Revision Log
« no previous file with comments | « no previous file | no next file » | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright (c) 2011 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2011 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 #include "chrome/browser/ui/browser.h" 5 #include "chrome/browser/ui/browser.h"
6 6
7 #if defined(OS_WIN) 7 #if defined(OS_WIN)
8 #include <windows.h> 8 #include <windows.h>
9 #include <shellapi.h> 9 #include <shellapi.h>
10 #endif // OS_WIN 10 #endif // OS_WIN
(...skipping 591 matching lines...) Expand 10 before | Expand all | Expand 10 after
602 browser->window()->Show(); 602 browser->window()->Show();
603 } 603 }
604 604
605 // static 605 // static
606 TabContents* Browser::OpenApplication( 606 TabContents* Browser::OpenApplication(
607 Profile* profile, 607 Profile* profile,
608 const Extension* extension, 608 const Extension* extension,
609 extension_misc::LaunchContainer container, 609 extension_misc::LaunchContainer container,
610 const GURL& override_url, 610 const GURL& override_url,
611 WindowOpenDisposition disposition) { 611 WindowOpenDisposition disposition) {
612 #if defined(USE_AURA)
613 // On aura we're experimenting with making all apps open in windows.
614 container = extension_misc::LAUNCH_WINDOW;
615 #endif
616 TabContents* tab = NULL; 612 TabContents* tab = NULL;
617 ExtensionPrefs* prefs = profile->GetExtensionService()->extension_prefs(); 613 ExtensionPrefs* prefs = profile->GetExtensionService()->extension_prefs();
618 prefs->SetActiveBit(extension->id(), true); 614 prefs->SetActiveBit(extension->id(), true);
619 615
620 UMA_HISTOGRAM_ENUMERATION("Extensions.AppLaunchContainer", container, 100); 616 UMA_HISTOGRAM_ENUMERATION("Extensions.AppLaunchContainer", container, 100);
621 617
622 switch (container) { 618 switch (container) {
623 case extension_misc::LAUNCH_WINDOW: 619 case extension_misc::LAUNCH_WINDOW:
624 case extension_misc::LAUNCH_PANEL: 620 case extension_misc::LAUNCH_PANEL:
625 tab = Browser::OpenApplicationWindow(profile, extension, container, 621 tab = Browser::OpenApplicationWindow(profile, extension, container,
(...skipping 4895 matching lines...) Expand 10 before | Expand all | Expand 10 after
5521 } 5517 }
5522 5518
5523 void Browser::UpdateFullscreenExitBubbleContent() { 5519 void Browser::UpdateFullscreenExitBubbleContent() {
5524 GURL url; 5520 GURL url;
5525 if (fullscreened_tab_) 5521 if (fullscreened_tab_)
5526 url = fullscreened_tab_->tab_contents()->GetURL(); 5522 url = fullscreened_tab_->tab_contents()->GetURL();
5527 5523
5528 window_->UpdateFullscreenExitBubbleContent( 5524 window_->UpdateFullscreenExitBubbleContent(
5529 url, GetFullscreenExitBubbleType()); 5525 url, GetFullscreenExitBubbleType());
5530 } 5526 }
OLDNEW
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698