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

Side by Side Diff: chrome/browser/ui/search/instant_overlay_controller.cc

Issue 12520005: Move desktop-specific Instant bits to c/b/ui/search. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Rebase. 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
OLDNEW
1 // Copyright 2012 The Chromium Authors. All rights reserved. 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 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 #include "chrome/browser/instant/instant_overlay_controller.h" 5 #include "chrome/browser/ui/search/instant_overlay_controller.h"
6 6
7 #include "chrome/browser/ui/browser.h" 7 #include "chrome/browser/ui/browser.h"
8 #include "chrome/browser/ui/browser_instant_controller.h" 8 #include "chrome/browser/ui/browser_instant_controller.h"
9 9
10 InstantOverlayController::InstantOverlayController(Browser* browser) 10 InstantOverlayController::InstantOverlayController(Browser* browser)
11 : browser_(browser) { 11 : browser_(browser) {
12 if (browser_->instant_controller()) 12 if (browser_->instant_controller())
13 browser_->instant_controller()->instant()->model()->AddObserver(this); 13 browser_->instant_controller()->instant()->model()->AddObserver(this);
14 } 14 }
15 15
16 InstantOverlayController::~InstantOverlayController() { 16 InstantOverlayController::~InstantOverlayController() {
17 if (browser_->instant_controller()) 17 if (browser_->instant_controller())
18 browser_->instant_controller()->instant()->model()->RemoveObserver(this); 18 browser_->instant_controller()->instant()->model()->RemoveObserver(this);
19 } 19 }
OLDNEW
« no previous file with comments | « chrome/browser/ui/search/instant_overlay_controller.h ('k') | chrome/browser/ui/search/instant_overlay_model.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698