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

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

Issue 4170010: [ChromeOS] Remove PanelBrowserView::Init. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 10 years, 2 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/panel_browser_view.h ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/browser/chromeos/frame/panel_browser_view.cc
diff --git a/chrome/browser/chromeos/frame/panel_browser_view.cc b/chrome/browser/chromeos/frame/panel_browser_view.cc
index e91d51f378a33e56fbcdec547de13d99516616b2..a7f075a0b5519a78f7d85fa9f6c6be0244833970 100644
--- a/chrome/browser/chromeos/frame/panel_browser_view.cc
+++ b/chrome/browser/chromeos/frame/panel_browser_view.cc
@@ -55,24 +55,6 @@ void PanelBrowserView::LimitBounds(gfx::Rect* bounds) const {
////////////////////////////////////////////////////////////////////////////////
// BrowserView overrides.
-void PanelBrowserView::Init() {
- ::BrowserView::Init();
- // The visibility of toolbar is controlled in
- // the BrowserView::IsToolbarVisible method.
-
- views::Window* window = frame()->GetWindow();
- gfx::NativeWindow native_window = window->GetNativeWindow();
- // The window manager needs the min size for popups.
- gfx::Rect bounds = window->GetBounds();
- LimitBounds(&bounds);
- gtk_widget_set_size_request(
- GTK_WIDGET(native_window), bounds.width(), bounds.height());
- // If we don't explicitly resize here there is a race condition between
- // the X Server and the window manager. Windows will appear with a default
- // size of 200x200 if this happens.
- gtk_window_resize(native_window, bounds.width(), bounds.height());
-}
-
void PanelBrowserView::Show() {
if (panel_controller_.get() == NULL) {
panel_controller_.reset(new PanelController(this, GetNativeHandle()));
« no previous file with comments | « chrome/browser/chromeos/frame/panel_browser_view.h ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698