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

Side by Side 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 unified diff | Download patch | Annotate | Revision Log
OLDNEW
(Empty)
1 // Copyright 2012 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file.
4
5 #include "chrome/browser/instant/instant_overlay_controller.h"
6
7 #include "chrome/browser/instant/instant_controller.h"
8 #include "chrome/browser/ui/browser.h"
9 #include "chrome/browser/ui/browser_instant_controller.h"
10
11 InstantOverlayController::InstantOverlayController(Browser* browser)
12 : browser_(browser) {
13 if (browser_->instant_controller())
14 browser_->instant_controller()->instant()->AddModelObserver(this);
15 }
16
17 InstantOverlayController::~InstantOverlayController() {
18 if (browser_->instant_controller())
19 browser_->instant_controller()->instant()->RemoveModelObserver(this);
20 }
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698