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

Unified Diff: chrome/browser/extensions/apps_promo.h

Issue 10831058: Delete AppPromoLogoFetcher (dead code) (Closed) Base URL: http://git.chromium.org/git/chromium.git@trunk
Patch Set: Created 8 years, 5 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
« no previous file with comments | « no previous file | chrome/browser/extensions/apps_promo.cc » ('j') | chrome/browser/extensions/apps_promo.cc » ('J')
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/browser/extensions/apps_promo.h
diff --git a/chrome/browser/extensions/apps_promo.h b/chrome/browser/extensions/apps_promo.h
index 2fad19b265355b15d094943d6266a6c66930cd73..14560ca19146f2c322730ad8d8b761d26c8b8d1d 100644
--- a/chrome/browser/extensions/apps_promo.h
+++ b/chrome/browser/extensions/apps_promo.h
@@ -145,33 +145,4 @@ class AppsPromo {
DISALLOW_COPY_AND_ASSIGN(AppsPromo);
};
-// Fetches logos over HTTPS, making sure we don't send cookies and that we
-// cache the image until its source URL changes.
-class AppsPromoLogoFetcher : public net::URLFetcherDelegate {
- public:
- AppsPromoLogoFetcher(Profile* profile,
- const AppsPromo::PromoData& promo_data);
- virtual ~AppsPromoLogoFetcher();
-
- virtual void OnURLFetchComplete(const net::URLFetcher* source) OVERRIDE;
-
- private:
- // Fetches the logo and stores the result as a data URL.
- void FetchLogo();
-
- // Checks if the logo was downloaded previously.
- bool HaveCachedLogo();
-
- // Sets the apps promo based on the current data and then issues the
- // WEB_STORE_PROMO_LOADED notification so open NTPs can inject the promo.
- void SavePromo();
-
- // Checks if the promo logo matches https://*.google.com/*.png.
- bool SupportsLogoURL();
-
- Profile* profile_;
- AppsPromo::PromoData promo_data_;
- scoped_ptr<net::URLFetcher> url_fetcher_;
-};
-
#endif // CHROME_BROWSER_EXTENSIONS_APPS_PROMO_H_
« no previous file with comments | « no previous file | chrome/browser/extensions/apps_promo.cc » ('j') | chrome/browser/extensions/apps_promo.cc » ('J')

Powered by Google App Engine
This is Rietveld 408576698