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

Side by Side Diff: chrome/browser/notifications/notification.cc

Issue 4635007: When an extension is uninstalled, close all desktop notifications from that e... (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src/
Patch Set: '' Created 10 years, 1 month 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 | Annotate | Revision Log
OLDNEW
1 // Copyright (c) 2010 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2010 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.h" 5 #include "chrome/browser/notifications/notification.h"
6 6
7 Notification::Notification(const GURL& origin_url, 7 Notification::Notification(const GURL& origin_url,
8 const GURL& content_url, 8 const GURL& content_url,
9 const string16& display_source, 9 const string16& display_source,
10 const string16& replace_id, 10 const string16& replace_id,
(...skipping 16 matching lines...) Expand all
27 Notification::~Notification() {} 27 Notification::~Notification() {}
28 28
29 Notification& Notification::operator=(const Notification& notification) { 29 Notification& Notification::operator=(const Notification& notification) {
30 origin_url_ = notification.origin_url(); 30 origin_url_ = notification.origin_url();
31 content_url_ = notification.content_url(); 31 content_url_ = notification.content_url();
32 display_source_ = notification.display_source(); 32 display_source_ = notification.display_source();
33 replace_id_ = notification.replace_id(); 33 replace_id_ = notification.replace_id();
34 delegate_ = notification.delegate(); 34 delegate_ = notification.delegate();
35 return *this; 35 return *this;
36 } 36 }
37
38 bool Notification::IsSame(const Notification& other) const {
39 return delegate()->id() == other.delegate()->id();
40 }
OLDNEW
« no previous file with comments | « chrome/browser/notifications/notification.h ('k') | chrome/browser/notifications/notification_options_menu_model.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698