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

Unified Diff: chrome/browser/ui/views/apps/native_app_window_views.cc

Issue 58883002: Nit: Using GetWidget() here is pretty confusing given that all methods (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: review comments applied Created 7 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/ui/views/apps/native_app_window_views.cc
diff --git a/chrome/browser/ui/views/apps/native_app_window_views.cc b/chrome/browser/ui/views/apps/native_app_window_views.cc
index 9b3950f0c950cbcbb101c15d700534335ed86be8..f14178dd1432c92f484fba3d8390684f01542c9e 100644
--- a/chrome/browser/ui/views/apps/native_app_window_views.cc
+++ b/chrome/browser/ui/views/apps/native_app_window_views.cc
@@ -287,7 +287,7 @@ void NativeAppWindowViews::OnShortcutInfoLoaded(
}
HWND NativeAppWindowViews::GetNativeAppWindowHWND() const {
- return views::HWNDForWidget(GetWidget()->GetTopLevelWidget());
+ return views::HWNDForWidget(window_->GetTopLevelWidget());
}
#endif
@@ -477,7 +477,7 @@ void NativeAppWindowViews::Restore() {
}
void NativeAppWindowViews::SetBounds(const gfx::Rect& bounds) {
- GetWidget()->SetBounds(bounds);
+ window_->SetBounds(bounds);
}
void NativeAppWindowViews::FlashFrame(bool flash) {
« 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