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

Unified Diff: chrome/browser/ui/views/extensions/extension_dialog.cc

Issue 11110004: Make gfx::Rect class operations consistently mutate the class they are called on. (Closed) Base URL: http://git.chromium.org/chromium/src.git@master
Patch Set: cc/ fixes Created 8 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
Index: chrome/browser/ui/views/extensions/extension_dialog.cc
diff --git a/chrome/browser/ui/views/extensions/extension_dialog.cc b/chrome/browser/ui/views/extensions/extension_dialog.cc
index c290fc14a3b0d74ca608784dcb6c6d7aaedb2c51..095760cbf82e8e84e068da46da0cd64fb3aa71c8 100644
--- a/chrome/browser/ui/views/extensions/extension_dialog.cc
+++ b/chrome/browser/ui/views/extensions/extension_dialog.cc
@@ -167,7 +167,7 @@ void ExtensionDialog::InitWindow(BaseWindow* base_window,
gfx::Rect screen_rect = gfx::Screen::GetScreenFor(parent)->
GetDisplayNearestPoint(center).bounds();
gfx::Rect bounds_rect = gfx::Rect(x, y, width, height);
- bounds_rect = bounds_rect.AdjustToFit(screen_rect);
+ bounds_rect.AdjustToFit(screen_rect);
window_->SetBounds(bounds_rect);
window_->Show();

Powered by Google App Engine
This is Rietveld 408576698