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

Unified Diff: ash/wm/window_state.cc

Issue 1609923002: Fix remaining incompatibilities between scoped_ptr and unique_ptr. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 4 years, 11 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: ash/wm/window_state.cc
diff --git a/ash/wm/window_state.cc b/ash/wm/window_state.cc
index 21a69d9750a58ab85405da6194db5656752ef210..e00970972a02ab827e91762c1f83ca8aa1def3c9 100644
--- a/ash/wm/window_state.cc
+++ b/ash/wm/window_state.cc
@@ -92,7 +92,7 @@ WindowState::~WindowState() {
}
bool WindowState::HasDelegate() const {
- return delegate_;
+ return !!delegate_;
}
void WindowState::SetDelegate(scoped_ptr<WindowStateDelegate> delegate) {

Powered by Google App Engine
This is Rietveld 408576698