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

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

Issue 11833043: Instant Extended: Fallback to local preview if the remote instant page is not ready on user input. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@refactor
Patch Set: Removing LOG messages. Created 7 years, 11 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_loader.cc
diff --git a/chrome/browser/instant/instant_loader.cc b/chrome/browser/instant/instant_loader.cc
index c6e6874e5473509f431f41f34e479e93a1524e95..520f7fed70d971f6ddf89539074e894e9409cee2 100644
--- a/chrome/browser/instant/instant_loader.cc
+++ b/chrome/browser/instant/instant_loader.cc
@@ -197,7 +197,8 @@ InstantLoader::InstantLoader(InstantController* controller,
ALLOW_THIS_IN_INITIALIZER_LIST(this))),
instant_url_(instant_url),
supports_instant_(false),
- is_pointer_down_from_activate_(false) {
+ is_pointer_down_from_activate_(false),
+ is_in_fallback_mode_(false) {
}
InstantLoader::~InstantLoader() {
@@ -226,6 +227,10 @@ content::WebContents* InstantLoader::ReleaseContents() {
return contents_.release();
}
+void InstantLoader::set_is_in_fallback_mode(bool value) {
+ is_in_fallback_mode_ = value;
+}
+
void InstantLoader::DidNavigate(
const history::HistoryAddPageArgs& add_page_args) {
last_navigation_ = add_page_args;
@@ -259,6 +264,10 @@ void InstantLoader::SetMarginSize(int start, int end) {
client_.SetMarginSize(start, end);
}
+void InstantLoader::InitializeFonts() {
+ client_.InitializeFonts();
+}
+
void InstantLoader::SendAutocompleteResults(
const std::vector<InstantAutocompleteResult>& results) {
client_.SendAutocompleteResults(results);

Powered by Google App Engine
This is Rietveld 408576698