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..e0362af138e7d8aa0a4ad252807d683eba2804a2 100644 |
--- a/chrome/browser/extensions/apps_promo.h |
+++ b/chrome/browser/extensions/apps_promo.h |
@@ -6,20 +6,14 @@ |
#define CHROME_BROWSER_EXTENSIONS_APPS_PROMO_H_ |
#pragma once |
-#include <set> |
#include <string> |
#include "base/gtest_prod_util.h" |
#include "chrome/common/extensions/extension.h" |
-#include "net/url_request/url_fetcher_delegate.h" |
class PrefService; |
class Profile; |
-namespace net { |
-class URLFetcher; |
-} // namespace net |
- |
// This encapsulates business logic for: |
// - Whether to show the apps promo in the launcher |
// - Whether to expire existing default apps |
@@ -145,33 +139,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_ |