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

Side by Side Diff: chrome/browser/extensions/apps_promo.h

Issue 8438028: ntp: remove ShownSectionHandler and all references to it (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: more functional test updates Created 9 years, 1 month 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 unified diff | Download patch | Annotate | Revision Log
OLDNEW
1 // Copyright (c) 2011 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2011 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 #ifndef CHROME_BROWSER_EXTENSIONS_APPS_PROMO_H_ 5 #ifndef CHROME_BROWSER_EXTENSIONS_APPS_PROMO_H_
6 #define CHROME_BROWSER_EXTENSIONS_APPS_PROMO_H_ 6 #define CHROME_BROWSER_EXTENSIONS_APPS_PROMO_H_
7 #pragma once 7 #pragma once
8 8
9 #include <set> 9 #include <set>
10 #include <string> 10 #include <string>
(...skipping 82 matching lines...) Expand 10 before | Expand all | Expand 10 after
93 } 93 }
94 94
95 // Halts the special treatment of the default apps. The default apps may be 95 // Halts the special treatment of the default apps. The default apps may be
96 // removed by the caller after calling this method. If the apps remain 96 // removed by the caller after calling this method. If the apps remain
97 // installed, AppsPromo will no longer consider the apps "default". 97 // installed, AppsPromo will no longer consider the apps "default".
98 void ExpireDefaultApps(); 98 void ExpireDefaultApps();
99 99
100 // Called to hide the promo from the apps section. 100 // Called to hide the promo from the apps section.
101 void HidePromo(); 101 void HidePromo();
102 102
103 // Maximizes the apps section on the NTP if the following conditions are met:
104 // (a) the existing promo has not already been maximized
105 // (b) the current user group is targetted by the promo
106 void MaximizeAppsIfNecessary();
107
108 // Returns true if the app launcher should be displayed on the NTP. 103 // Returns true if the app launcher should be displayed on the NTP.
109 bool ShouldShowAppLauncher(const ExtensionIdSet& installed_ids); 104 bool ShouldShowAppLauncher(const ExtensionIdSet& installed_ids);
110 105
111 // Returns true if the apps promo should be displayed in the launcher. 106 // Returns true if the apps promo should be displayed in the launcher.
112 bool ShouldShowPromo(const ExtensionIdSet& installed_ids, 107 bool ShouldShowPromo(const ExtensionIdSet& installed_ids,
113 bool* just_expired); 108 bool* just_expired);
114 109
115 private: 110 private:
116 FRIEND_TEST_ALL_PREFIXES(ExtensionAppsPromo, HappyPath); 111 FRIEND_TEST_ALL_PREFIXES(ExtensionAppsPromo, HappyPath);
117 FRIEND_TEST_ALL_PREFIXES(ExtensionAppsPromo, PromoPrefs); 112 FRIEND_TEST_ALL_PREFIXES(ExtensionAppsPromo, PromoPrefs);
(...skipping 51 matching lines...) Expand 10 before | Expand all | Expand 10 after
169 164
170 // Checks if the promo logo matches https://*.google.com/*.png. 165 // Checks if the promo logo matches https://*.google.com/*.png.
171 bool SupportsLogoURL(); 166 bool SupportsLogoURL();
172 167
173 Profile* profile_; 168 Profile* profile_;
174 AppsPromo::PromoData promo_data_; 169 AppsPromo::PromoData promo_data_;
175 scoped_ptr<content::URLFetcher> url_fetcher_; 170 scoped_ptr<content::URLFetcher> url_fetcher_;
176 }; 171 };
177 172
178 #endif // CHROME_BROWSER_EXTENSIONS_APPS_PROMO_H_ 173 #endif // CHROME_BROWSER_EXTENSIONS_APPS_PROMO_H_
OLDNEW
« no previous file with comments | « chrome/browser/automation/testing_automation_provider.cc ('k') | chrome/browser/extensions/apps_promo.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698