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

Side by Side 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: build fix of desktop linux/win Created 6 years, 2 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 unified diff | Download patch
OLDNEW
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2012 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 #include "chrome/browser/notifications/notification_test_util.h" 5 #include "chrome/browser/notifications/notification_test_util.h"
6 6
7 MockNotificationDelegate::MockNotificationDelegate(const std::string& id) 7 MockNotificationDelegate::MockNotificationDelegate(const std::string& id)
8 : id_(id) {} 8 : id_(id) {}
9 9
10 MockNotificationDelegate::~MockNotificationDelegate() {} 10 MockNotificationDelegate::~MockNotificationDelegate() {}
11 11
12 std::string MockNotificationDelegate::id() const { return id_; } 12 std::string MockNotificationDelegate::id() const { return id_; }
13 13
14 content::WebContents* MockNotificationDelegate::GetWebContents() const {
15 return NULL;
16 }
17
18 // TODO(peter): |notification_| should be initialized with the correct origin. 14 // TODO(peter): |notification_| should be initialized with the correct origin.
19 StubNotificationUIManager::StubNotificationUIManager(const GURL& welcome_origin) 15 StubNotificationUIManager::StubNotificationUIManager(const GURL& welcome_origin)
20 : notification_(GURL(), 16 : notification_(GURL(),
21 base::string16(), 17 base::string16(),
22 base::string16(), 18 base::string16(),
23 gfx::Image(), 19 gfx::Image(),
24 base::string16(), 20 base::string16(),
25 base::string16(), 21 base::string16(),
26 new MockNotificationDelegate("stub")), 22 new MockNotificationDelegate("stub")),
27 profile_(NULL), 23 profile_(NULL),
(...skipping 51 matching lines...) Expand 10 before | Expand all | Expand 10 after
79 bool StubNotificationUIManager::CancelAllBySourceOrigin( 75 bool StubNotificationUIManager::CancelAllBySourceOrigin(
80 const GURL& source_origin) { 76 const GURL& source_origin) {
81 return false; 77 return false;
82 } 78 }
83 79
84 bool StubNotificationUIManager::CancelAllByProfile(ProfileID profile_id) { 80 bool StubNotificationUIManager::CancelAllByProfile(ProfileID profile_id) {
85 return false; 81 return false;
86 } 82 }
87 83
88 void StubNotificationUIManager::CancelAll() {} 84 void StubNotificationUIManager::CancelAll() {}
OLDNEW
« no previous file with comments | « chrome/browser/notifications/notification_test_util.h ('k') | chrome/browser/signin/signin_error_notifier_ash.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698