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

Unified Diff: chrome/browser/gtk/browser_window_gtk.cc

Issue 355007: Linux: Initialize |restored_bounds_| so new windows always have a proper size. (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: '' Created 11 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « no previous file | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/browser/gtk/browser_window_gtk.cc
===================================================================
--- chrome/browser/gtk/browser_window_gtk.cc (revision 30836)
+++ chrome/browser/gtk/browser_window_gtk.cc (working copy)
@@ -1600,7 +1600,7 @@
void BrowserWindowGtk::InitWidgets() {
ConnectHandlersToSignals();
- bounds_ = GetInitialWindowBounds(window_);
+ bounds_ = restored_bounds_ = GetInitialWindowBounds(window_);
// This vbox encompasses all of the widgets within the browser. This is
// everything except the custom frame border.
@@ -1952,7 +1952,7 @@
GdkModifierType modifier,
BrowserWindowGtk* browser_window) {
int command_id = ::GetCommandId(keyval, modifier);
- DCHECK(command_id != -1);
+ DCHECK_NE(command_id, -1);
browser_window->ExecuteBrowserCommand(command_id);
return TRUE;
« 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