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

Unified Diff: chrome/browser/chromeos/status/data_promo_notification.h

Issue 10907224: Data promo notification should follow the normal ash notifications theme. This (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: patch Created 8 years, 3 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/chromeos/status/data_promo_notification.h
diff --git a/chrome/browser/chromeos/status/data_promo_notification.h b/chrome/browser/chromeos/status/data_promo_notification.h
index d45384b39dc9bea43e8a76060fe9a45c0f825193..0fe3600e6ad30d79da99c47cdd5978c9ab73b29b 100644
--- a/chrome/browser/chromeos/status/data_promo_notification.h
+++ b/chrome/browser/chromeos/status/data_promo_notification.h
@@ -7,20 +7,21 @@
#include "base/basictypes.h"
#include "base/memory/weak_ptr.h"
-#include "ui/views/widget/widget_observer.h"
class PrefService;
+namespace ash {
+class NetworkTrayDelegate;
+}
+
namespace views {
class View;
}
namespace chromeos {
-class MessageBubble;
-class MessageBubbleLinkListener;
class NetworkLibrary;
-class DataPromoNotification : public views::WidgetObserver {
+class DataPromoNotification {
public:
DataPromoNotification();
virtual ~DataPromoNotification();
@@ -34,18 +35,12 @@ class DataPromoNotification : public views::WidgetObserver {
void ShowOptionalMobileDataPromoNotification(
NetworkLibrary* cros,
views::View* host,
- MessageBubbleLinkListener* listener);
+ ash::NetworkTrayDelegate* listener);
// Closes message bubble.
void CloseNotification();
private:
- // Overridden from views::WidgetObserver:
- virtual void OnWidgetClosing(views::Widget* widget) OVERRIDE;
-
- // Notification bubble for 3G promo.
- MessageBubble* mobile_data_bubble_;
-
// True if check for promo needs to be done,
// otherwise just ignore it for current session.
bool check_for_promo_;
« no previous file with comments | « chrome/browser/chromeos/network_message_observer.cc ('k') | chrome/browser/chromeos/status/data_promo_notification.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698