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

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

Issue 11091050: InstantExtended: Add js api for custom logo. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 8 years, 2 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_controller.cc
diff --git a/chrome/browser/instant/instant_controller.cc b/chrome/browser/instant/instant_controller.cc
index 55272bfe0081b6ce2eb431fb14810415a384e6b9..e7e0ec0a6f9af66e51995d745aaf613cca0ce8cd 100644
--- a/chrome/browser/instant/instant_controller.cc
+++ b/chrome/browser/instant/instant_controller.cc
@@ -550,6 +550,14 @@ void InstantController::SetSuggestions(
Show(100, INSTANT_SIZE_PERCENT);
}
+void InstantController::SetHasCustomLogo(InstantLoader* loader,
+ bool has_logo) {
+ if (loader_ != loader || mode_ != EXTENDED)
+ return;
+
+ delegate_->SetHasCustomLogo(has_logo);
+}
+
void InstantController::CommitInstantLoader(InstantLoader* loader) {
if (loader_ != loader || !is_showing_ || IsOutOfDate())
return;

Powered by Google App Engine
This is Rietveld 408576698