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

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

Issue 9956145: Remove wrench button from panel. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Fix per feedback Created 8 years, 8 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/ui/panels/panel.h ('k') | chrome/browser/ui/panels/panel_browser_frame_view.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/browser/ui/panels/panel.cc
diff --git a/chrome/browser/ui/panels/panel.cc b/chrome/browser/ui/panels/panel.cc
index c586dcd2651dda88c6bd9a506a8cf1f854097104..5ad56ac25449ee188651cc1a3d16593a9c8282c6 100644
--- a/chrome/browser/ui/panels/panel.cc
+++ b/chrome/browser/ui/panels/panel.cc
@@ -5,8 +5,6 @@
#include "chrome/browser/ui/panels/panel.h"
#include "base/logging.h"
-#include "chrome/browser/extensions/extension_prefs.h"
-#include "chrome/browser/extensions/extension_service.h"
#include "chrome/browser/profiles/profile.h"
#include "chrome/browser/tabs/tab_strip_model.h"
#include "chrome/browser/ui/browser.h"
@@ -15,9 +13,7 @@
#include "chrome/browser/ui/panels/panel_strip.h"
#include "chrome/browser/ui/tab_contents/tab_contents_wrapper.h"
#include "chrome/browser/ui/window_sizer.h"
-#include "chrome/browser/web_applications/web_app.h"
#include "chrome/common/chrome_notification_types.h"
-#include "chrome/common/extensions/extension.h"
#include "content/public/browser/notification_service.h"
#include "content/public/browser/notification_source.h"
#include "content/public/browser/notification_types.h"
@@ -33,16 +29,6 @@ using content::RenderViewHost;
using content::SSLStatus;
using content::WebContents;
-// static
-const Extension* Panel::GetExtensionFromBrowser(Browser* browser) {
- // Find the extension. When we create a panel from an extension, the extension
- // ID is passed as the app name to the Browser.
- ExtensionService* extension_service =
- browser->GetProfile()->GetExtensionService();
- return extension_service->GetExtensionById(
- web_app::GetExtensionIdFromApplicationName(browser->app_name()), false);
-}
-
Panel::Panel(Browser* browser, const gfx::Size& requested_size)
: browser_(browser),
panel_strip_(NULL),
@@ -92,10 +78,6 @@ panel::Resizability Panel::CanResizeByMouse() const {
return panel_strip_->GetPanelResizability(this);
}
-const Extension* Panel::GetExtension() const {
- return GetExtensionFromBrowser(browser());
-}
-
// TODO(jennb): do not update restored_size here as there's no knowledge
// at this point whether the bounds change is due to the content window
// being resized vs a change in current display bounds, e.g. from overflow
« no previous file with comments | « chrome/browser/ui/panels/panel.h ('k') | chrome/browser/ui/panels/panel_browser_frame_view.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698