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

Unified Diff: chrome/browser/web_resource/notification_promo.cc

Issue 9949033: Removed access to prefs that does not work on Android (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 8 years, 8 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/web_resource/notification_promo.cc
diff --git a/chrome/browser/web_resource/notification_promo.cc b/chrome/browser/web_resource/notification_promo.cc
index 3bb9cb22a49ad008f81576a5974c3b099e2b16a1..c8d6a02f3cca747229673b6a5dcfc21068748fe2 100644
--- a/chrome/browser/web_resource/notification_promo.cc
+++ b/chrome/browser/web_resource/notification_promo.cc
@@ -354,11 +354,15 @@ bool NotificationPromo::HandleViewed() {
}
bool NotificationPromo::IsBuildAllowed(int builds_allowed) const {
Yaron 2012/04/09 17:12:55 Seems like we might want to remove the PromoResour
Dan Beam 2012/04/09 17:20:16 +1
Jerome 2012/04/09 18:24:06 Done.
+#if !defined(OS_ANDROID)
if (delegate_) // For testing.
return delegate_->IsBuildAllowed(builds_allowed);
else
return PromoResourceService::IsBuildTargeted(
PromoResourceService::GetChannel(), builds_allowed);
+#else
+ return false;
+#endif
}
bool NotificationPromo::IsPlatformAllowed(int target_platform) const {

Powered by Google App Engine
This is Rietveld 408576698