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

Unified Diff: chrome/browser/ui/cocoa/tab_contents/instant_preview_controller_mac.mm

Issue 11421079: Persist the Instant API to committed search result pages. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: More fixes Created 8 years 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/ui/cocoa/tab_contents/instant_preview_controller_mac.mm
diff --git a/chrome/browser/ui/cocoa/tab_contents/instant_preview_controller_mac.mm b/chrome/browser/ui/cocoa/tab_contents/instant_preview_controller_mac.mm
index eb8d1b30cdc9b98f2c6c9a0324aaeb6f2ba8c171..d915d63a7d589ee1c798b74655c50024bf40e572 100644
--- a/chrome/browser/ui/cocoa/tab_contents/instant_preview_controller_mac.mm
+++ b/chrome/browser/ui/cocoa/tab_contents/instant_preview_controller_mac.mm
@@ -7,7 +7,6 @@
#include "chrome/browser/instant/instant_model.h"
#import "chrome/browser/ui/cocoa/browser_window_controller.h"
#import "chrome/browser/ui/cocoa/tab_contents/previewable_contents_controller.h"
-#include "chrome/browser/ui/tab_contents/tab_contents.h"
InstantPreviewControllerMac::InstantPreviewControllerMac(
Browser* browser,
@@ -25,7 +24,7 @@ void InstantPreviewControllerMac::PreviewStateChanged(
const InstantModel& model) {
if (model.mode().is_search_suggestions()) {
// TODO(dhollowa): Needs height and units implementation on Mac.
- [preview_ showPreview:model.GetPreviewContents()->web_contents()];
+ [preview_ showPreview:model.GetPreviewContents()];
} else {
[preview_ hidePreview];
}

Powered by Google App Engine
This is Rietveld 408576698