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

Unified Diff: chrome/browser/notifications/notification_test_util.cc

Issue 580243004: Remove unnecessary image downloading handler of notifications. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: re-upload Created 6 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/notifications/notification_test_util.cc
diff --git a/chrome/browser/notifications/notification_test_util.cc b/chrome/browser/notifications/notification_test_util.cc
index 4825d723903212d7d05c4efeafdbb429d52b8ee2..e47f1959713d377540e60b20fd6e1bc9e0186cec 100644
--- a/chrome/browser/notifications/notification_test_util.cc
+++ b/chrome/browser/notifications/notification_test_util.cc
@@ -11,18 +11,17 @@ MockNotificationDelegate::~MockNotificationDelegate() {}
std::string MockNotificationDelegate::id() const { return id_; }
-content::WebContents* MockNotificationDelegate::GetWebContents() const {
- return NULL;
-}
-
StubNotificationUIManager::StubNotificationUIManager(const GURL& welcome_origin)
- : notification_(GURL(),
- gfx::Image(),
+ : notification_(message_center::NOTIFICATION_TYPE_SIMPLE,
+ GURL(),
base::string16(),
base::string16(),
+ gfx::Image(),
blink::WebTextDirectionDefault,
+ message_center::NotifierId(),
base::string16(),
base::string16(),
+ message_center::RichNotificationData(),
new MockNotificationDelegate("stub")),
welcome_origin_(welcome_origin),
welcomed_(false),

Powered by Google App Engine
This is Rietveld 408576698