summaryrefslogtreecommitdiffstats
path: root/chrome/browser/gtk/browser_window_gtk.cc
diff options
context:
space:
mode:
authorphajdan.jr@chromium.org <phajdan.jr@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2009-10-21 17:36:49 +0000
committerphajdan.jr@chromium.org <phajdan.jr@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2009-10-21 17:36:49 +0000
commit86c10a17c5b7fbaa21d39b1f8d69b858a9fce417 (patch)
treee79f4da7a12456ed5e342c222d1592633242fdf1 /chrome/browser/gtk/browser_window_gtk.cc
parent3374f3ca35055b0bc4abaab15a962a53576fe8fd (diff)
downloadchromium_src-86c10a17c5b7fbaa21d39b1f8d69b858a9fce417.zip
chromium_src-86c10a17c5b7fbaa21d39b1f8d69b858a9fce417.tar.gz
chromium_src-86c10a17c5b7fbaa21d39b1f8d69b858a9fce417.tar.bz2
Remove the extension shelf on Linux.
The extension team's plan is to get rid of extension shelf entirely. This is also going to fix a crash. TEST=none BUG=25106 Review URL: http://codereview.chromium.org/313006 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@29665 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'chrome/browser/gtk/browser_window_gtk.cc')
-rw-r--r--chrome/browser/gtk/browser_window_gtk.cc18
1 files changed, 3 insertions, 15 deletions
diff --git a/chrome/browser/gtk/browser_window_gtk.cc b/chrome/browser/gtk/browser_window_gtk.cc
index 269be50..9981031 100644
--- a/chrome/browser/gtk/browser_window_gtk.cc
+++ b/chrome/browser/gtk/browser_window_gtk.cc
@@ -45,7 +45,6 @@
#include "chrome/browser/gtk/download_in_progress_dialog_gtk.h"
#include "chrome/browser/gtk/download_shelf_gtk.h"
#include "chrome/browser/gtk/edit_search_engine_dialog.h"
-#include "chrome/browser/gtk/extension_shelf_gtk.h"
#include "chrome/browser/gtk/find_bar_gtk.h"
#include "chrome/browser/gtk/go_button_gtk.h"
#include "chrome/browser/gtk/gtk_theme_provider.h"
@@ -1673,12 +1672,6 @@ void BrowserWindowGtk::InitWidgets() {
G_CALLBACK(&OnCompactNavSpacerExpose), this);
}
#endif
- if (IsExtensionShelfSupported()) {
- extension_shelf_.reset(new ExtensionShelfGtk(browser()->profile(),
- browser_.get()));
- gtk_box_pack_end(GTK_BOX(window_vbox_), extension_shelf_->widget(),
- FALSE, FALSE, 0);
- }
// This vbox surrounds the render area: find bar, info bars and render view.
// The reason is that this area as a whole needs to be grouped in its own
@@ -2158,8 +2151,7 @@ void BrowserWindowGtk::HideUnsupportedWindowFeatures() {
if (!IsToolbarSupported())
toolbar_->Hide();
- // If the bookmark bar or extension shelf is unsupported, then we never
- // create them.
+ // If the bookmark bar shelf is unsupported, then we never create it.
}
bool BrowserWindowGtk::IsTabStripSupported() const {
@@ -2175,10 +2167,6 @@ bool BrowserWindowGtk::IsBookmarkBarSupported() const {
return browser_->SupportsWindowFeature(Browser::FEATURE_BOOKMARKBAR);
}
-bool BrowserWindowGtk::IsExtensionShelfSupported() const {
- return browser_->SupportsWindowFeature(Browser::FEATURE_EXTENSIONSHELF);
-}
-
bool BrowserWindowGtk::GetWindowEdge(int x, int y, GdkWindowEdge* edge) {
if (!UseCustomFrame())
return false;
@@ -2247,8 +2235,8 @@ void BrowserWindowGtk::PlaceBookmarkBar(bool is_floating) {
if (!is_floating) {
// Place the bookmark bar at the end of |window_vbox_|; this happens after
- // we have placed the extension shelf and render area at the end of
- // |window_vbox_| so we will be above the render area.
+ // we have placed the render area at the end of |window_vbox_| so we will
+ // be above the render area.
gtk_box_pack_end(GTK_BOX(window_vbox_), bookmark_bar_->widget(),
FALSE, FALSE, 0);
} else {