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

Unified Diff: ui/views/controls/webview/webview.cc

Issue 1440593004: Make operators on scoped_ptr match the ones defined for std::unique_ptr (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: scopedptrequals: followupfix-after-rebase Created 5 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 | « ui/views/bubble/bubble_delegate_unittest.cc ('k') | ui/views/touchui/touch_selection_controller_impl.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: ui/views/controls/webview/webview.cc
diff --git a/ui/views/controls/webview/webview.cc b/ui/views/controls/webview/webview.cc
index 8e6465ea757efa96e7de1c4c11bddabc540418d6..a75e4708e15a2bcd4b69be283acf359d804f5f0b 100644
--- a/ui/views/controls/webview/webview.cc
+++ b/ui/views/controls/webview/webview.cc
@@ -65,7 +65,7 @@ void WebView::SetWebContents(content::WebContents* replacement) {
}
// web_contents() now returns |replacement| from here onwards.
SetFocusable(!!web_contents());
- if (wc_owner_ != replacement)
+ if (wc_owner_.get() != replacement)
wc_owner_.reset();
if (embed_fullscreen_widget_mode_enabled_) {
is_embedding_fullscreen_widget_ =
« no previous file with comments | « ui/views/bubble/bubble_delegate_unittest.cc ('k') | ui/views/touchui/touch_selection_controller_impl.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698