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

Unified Diff: chrome/browser/chromeos/frame/browser_view.cc

Issue 1145001: Porting the app launcher to Windows, and adding an experimental flag... (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: '' Created 10 years, 9 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
« no previous file with comments | « chrome/browser/chromeos/frame/browser_view.h ('k') | chrome/browser/views/app_launcher.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/browser/chromeos/frame/browser_view.cc
===================================================================
--- chrome/browser/chromeos/frame/browser_view.cc (revision 42236)
+++ chrome/browser/chromeos/frame/browser_view.cc (working copy)
@@ -11,7 +11,6 @@
#include "app/menus/simple_menu_model.h"
#include "app/theme_provider.h"
#include "chrome/app/chrome_dll_resource.h"
-#include "chrome/browser/chromeos/app_launcher.h"
#include "chrome/browser/chromeos/compact_location_bar_host.h"
#include "chrome/browser/chromeos/compact_navigation_bar.h"
#include "chrome/browser/chromeos/frame/panel_browser_view.h"
@@ -20,6 +19,7 @@
#include "chrome/browser/chromeos/status/status_area_button.h"
#include "chrome/browser/chromeos/wm_ipc.h"
#include "chrome/browser/view_ids.h"
+#include "chrome/browser/views/app_launcher.h"
#include "chrome/browser/views/frame/browser_extender.h"
#include "chrome/browser/views/frame/browser_frame_gtk.h"
#include "chrome/browser/views/frame/browser_view.h"
@@ -338,7 +338,6 @@
BrowserView::BrowserView(Browser* browser)
: ::BrowserView(browser),
- main_menu_(NULL),
main_menu_button_(NULL),
status_area_(NULL),
compact_navigation_bar_(NULL),
@@ -458,10 +457,7 @@
// views::ButtonListener overrides.
void BrowserView::ButtonPressed(views::Button* sender,
const views::Event& event) {
- if (!main_menu_.get()) {
- main_menu_.reset(new AppLauncher(browser()));
- }
- main_menu_->Show();
+ AppLauncher::Show(browser());
}
// views::ContextMenuController overrides.
« no previous file with comments | « chrome/browser/chromeos/frame/browser_view.h ('k') | chrome/browser/views/app_launcher.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698