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

Unified Diff: ui/views/controls/scrollbar/native_scroll_bar.cc

Issue 388893003: Fixes for re-enabling more MSVC level 4 warnings: ui/ edition (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 6 years, 5 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: ui/views/controls/scrollbar/native_scroll_bar.cc
diff --git a/ui/views/controls/scrollbar/native_scroll_bar.cc b/ui/views/controls/scrollbar/native_scroll_bar.cc
index 7b45dd6e05247429945ec235ebc1b05aefa18c4e..a768af5e52edd160ec5fa8d56697af4a424a42f1 100644
--- a/ui/views/controls/scrollbar/native_scroll_bar.cc
+++ b/ui/views/controls/scrollbar/native_scroll_bar.cc
@@ -57,8 +57,7 @@ void NativeScrollBar::Layout() {
void NativeScrollBar::ViewHierarchyChanged(
const ViewHierarchyChangedDetails& details) {
- Widget* widget;
- if (details.is_add && !native_wrapper_ && (widget = GetWidget())) {
+ if (details.is_add && !native_wrapper_ && GetWidget()) {
native_wrapper_ = NativeScrollBarWrapper::CreateWrapper(this);
AddChildView(native_wrapper_->GetView());
}

Powered by Google App Engine
This is Rietveld 408576698