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

Unified Diff: chrome/browser/android/logo_service.cc

Issue 1343913002: Introduce Animated Logo to Chrome on Android (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 5 years, 3 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/android/logo_service.cc
diff --git a/chrome/browser/android/logo_service.cc b/chrome/browser/android/logo_service.cc
index 5277f7efbf8cb2c0658b253666119bff79096b8d..94246dd1dea13f9ccc60310c3d6b4be2f0e04c3e 100644
--- a/chrome/browser/android/logo_service.cc
+++ b/chrome/browser/android/logo_service.cc
@@ -17,6 +17,7 @@
#include "net/url_request/url_request_context_getter.h"
using content::BrowserThread;
+using search_provider_logos::AnimatedLogoTracker;
using search_provider_logos::Logo;
using search_provider_logos::LogoDelegate;
using search_provider_logos::LogoTracker;
@@ -125,10 +126,21 @@ void LogoService::GetLogo(search_provider_logos::LogoObserver* observer) {
GetGoogleDoodleURL(profile_),
base::Bind(&search_provider_logos::GoogleParseLogoResponse),
base::Bind(&search_provider_logos::GoogleAppendQueryparamsToLogoURL),
- false);
+ true);
newt (away) 2015/09/18 20:46:03 as a later step, we can remove this parameter from
Ian Wen 2015/09/22 21:39:06 I added a todo to clean this up.
logo_tracker_->GetLogo(observer);
}
+void LogoService::GetAnimatedLogo(
+ const GURL& animated_logo_url,
+ const search_provider_logos::AnimatedLogoCallback& callback) {
+
+ if (!animated_logo_tracker_) {
+ animated_logo_tracker_.reset(
+ new AnimatedLogoTracker(profile_->GetRequestContext()));
+ }
+ animated_logo_tracker_->GetAnimatedLogo(animated_logo_url, callback);
+}
+
// LogoServiceFactory ---------------------------------------------------------
// static

Powered by Google App Engine
This is Rietveld 408576698