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

Unified Diff: chrome/browser/instant/instant_overlay_controller.cc

Issue 12386019: Instant: Use only one hidden WebContents per profile. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: . Created 7 years, 9 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: chrome/browser/instant/instant_overlay_controller.cc
diff --git a/chrome/browser/instant/instant_overlay_controller.cc b/chrome/browser/instant/instant_overlay_controller.cc
index 2ecaff9a51dc7aa1d6f33e3d6ff943ba09fb3216..5e29d8ea9b66008e7b605b07c2aa899308b2c3be 100644
--- a/chrome/browser/instant/instant_overlay_controller.cc
+++ b/chrome/browser/instant/instant_overlay_controller.cc
@@ -4,16 +4,17 @@
#include "chrome/browser/instant/instant_overlay_controller.h"
+#include "chrome/browser/instant/instant_controller.h"
#include "chrome/browser/ui/browser.h"
#include "chrome/browser/ui/browser_instant_controller.h"
InstantOverlayController::InstantOverlayController(Browser* browser)
: browser_(browser) {
if (browser_->instant_controller())
- browser_->instant_controller()->instant()->model()->AddObserver(this);
+ browser_->instant_controller()->instant()->AddOverlayModelObserver(this);
}
InstantOverlayController::~InstantOverlayController() {
if (browser_->instant_controller())
- browser_->instant_controller()->instant()->model()->RemoveObserver(this);
+ browser_->instant_controller()->instant()->RemoveOverlayModelObserver(this);
}

Powered by Google App Engine
This is Rietveld 408576698