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

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

Issue 11555033: Adding local html page used in Instant Extended mode when instant is disabled or unavailable. (Closed) Base URL: http://git.chromium.org/chromium/src.git@master
Patch Set: Addressing samarth's and sky's comments. 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/instant/instant_loader.cc
diff --git a/chrome/browser/instant/instant_loader.cc b/chrome/browser/instant/instant_loader.cc
index 906f7500404a4755c99a0403ab91f18435daa798..ea0605e53f203c1112db6b6e5b83acb507e2dcce 100644
--- a/chrome/browser/instant/instant_loader.cc
+++ b/chrome/browser/instant/instant_loader.cc
@@ -228,6 +228,10 @@ void InstantLoader::DidNavigate(
last_navigation_ = add_page_args;
}
+bool InstantLoader::IsUsingLocalPreview() const {
+ return instant_url_ == InstantController::kLocalOmniboxPopupURL;
+}
+
void InstantLoader::Update(const string16& text,
size_t selection_start,
size_t selection_end,

Powered by Google App Engine
This is Rietveld 408576698