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

Unified Diff: content/browser/web_contents/web_contents_view_aura.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: 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
Index: content/browser/web_contents/web_contents_view_aura.cc
diff --git a/content/browser/web_contents/web_contents_view_aura.cc b/content/browser/web_contents/web_contents_view_aura.cc
index 3d0b9c74214fe66f539398b84c96f136bc2d5e26..18651d29d5ff331ef687dbfc51f8d4759786cc34 100644
--- a/content/browser/web_contents/web_contents_view_aura.cc
+++ b/content/browser/web_contents/web_contents_view_aura.cc
@@ -473,7 +473,7 @@ class WebContentsViewAura::WindowObserver
void OnWindowParentChanged(aura::Window* window,
aura::Window* parent) override {
- if (window != view_->window_)
+ if (window != view_->window_.get())
return;
aura::Window* host_window =
@@ -529,7 +529,7 @@ class WebContentsViewAura::WindowObserver
void OnWindowBoundsChanged(aura::Window* window,
const gfx::Rect& old_bounds,
const gfx::Rect& new_bounds) override {
- if (window == host_window_ || window == view_->window_) {
+ if (window == host_window_ || window == view_->window_.get()) {
SendScreenRects();
if (old_bounds.origin() != new_bounds.origin()) {
TouchSelectionControllerClientAura* selection_controller_client =
@@ -552,7 +552,7 @@ class WebContentsViewAura::WindowObserver
}
void OnWindowAddedToRootWindow(aura::Window* window) override {
- if (window == view_->window_) {
+ if (window == view_->window_.get()) {
window->GetHost()->AddObserver(this);
#if defined(OS_WIN)
if (!window->GetRootWindow()->HasObserver(this))
@@ -563,7 +563,7 @@ class WebContentsViewAura::WindowObserver
void OnWindowRemovingFromRootWindow(aura::Window* window,
aura::Window* new_root) override {
- if (window == view_->window_) {
+ if (window == view_->window_.get()) {
window->GetHost()->RemoveObserver(this);
#if defined(OS_WIN)
window->GetRootWindow()->RemoveObserver(this);

Powered by Google App Engine
This is Rietveld 408576698