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

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: rebase 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') | no next file with comments »
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..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_
« no previous file with comments | « no previous file | chrome/browser/extensions/apps_promo.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698