summaryrefslogtreecommitdiffstats
path: root/chrome/browser/notifications/notification.h
diff options
context:
space:
mode:
authorjuyik@chromium.org <juyik@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2014-06-20 04:39:55 +0000
committerjuyik@chromium.org <juyik@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2014-06-20 04:39:55 +0000
commit5d654b92a3d2ce7d6b7273c4828d7c27ef4cdcc5 (patch)
treefb4684b7d404ca0e34eae694d505099186e10623 /chrome/browser/notifications/notification.h
parent995127b86ef61efdc9273c08c01012fc8e132b0e (diff)
downloadchromium_src-5d654b92a3d2ce7d6b7273c4828d7c27ef4cdcc5.zip
chromium_src-5d654b92a3d2ce7d6b7273c4828d7c27ef4cdcc5.tar.gz
chromium_src-5d654b92a3d2ce7d6b7273c4828d7c27ef4cdcc5.tar.bz2
Rename notification_id() to disambiguate its meaning.
As an intermediate step to disambiguate notifications at notification UI manager level, we rename notification_id() to delegate_id() to clarify that it is not an id for notification in message center. Also change assignment operator of message center's notification to protected. Other members are still used by notification list so they need to be public. BUG=297867 Review URL: https://codereview.chromium.org/344763002 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@278593 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'chrome/browser/notifications/notification.h')
-rw-r--r--chrome/browser/notifications/notification.h3
1 files changed, 2 insertions, 1 deletions
diff --git a/chrome/browser/notifications/notification.h b/chrome/browser/notifications/notification.h
index 18997a6..d2a9d4a 100644
--- a/chrome/browser/notifications/notification.h
+++ b/chrome/browser/notifications/notification.h
@@ -82,7 +82,8 @@ class Notification : public message_center::Notification {
// A url for the image to be shown (optional).
const GURL& image_url() const { return image_url_; }
- std::string notification_id() const { return delegate()->id(); }
+ // Id of the delegate embedded inside this instance.
+ std::string delegate_id() const { return delegate()->id(); }
int process_id() const { return delegate()->process_id(); }
content::WebContents* GetWebContents() const {