Chromium Code Reviews| 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 { |