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

Unified Diff: chrome/browser/extensions/api/notifications/notifications_api.cc

Issue 566093002: Remove NotificationDelegate::process_id(). (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: 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
« no previous file with comments | « no previous file | chrome/browser/notifications/message_center_notification_manager.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/browser/extensions/api/notifications/notifications_api.cc
diff --git a/chrome/browser/extensions/api/notifications/notifications_api.cc b/chrome/browser/extensions/api/notifications/notifications_api.cc
index 0f3b7675f3a6506db299ba06ee782167a71d7911..631dbf4b219164e35619178184d2440805a7cc69 100644
--- a/chrome/browser/extensions/api/notifications/notifications_api.cc
+++ b/chrome/browser/extensions/api/notifications/notifications_api.cc
@@ -81,11 +81,8 @@ class NotificationsApiDelegate : public NotificationDelegate {
profile_(profile),
extension_id_(extension_id),
id_(id),
- scoped_id_(CreateScopedIdentifier(extension_id, id)),
- process_id_(-1) {
+ scoped_id_(CreateScopedIdentifier(extension_id, id)) {
DCHECK(api_function_.get());
- if (api_function_->render_view_host())
- process_id_ = api_function->render_view_host()->GetProcess()->GetID();
}
virtual void Display() OVERRIDE { }
@@ -125,10 +122,6 @@ class NotificationsApiDelegate : public NotificationDelegate {
return scoped_id_;
}
- virtual int process_id() const OVERRIDE {
- return process_id_;
- }
-
virtual content::WebContents* GetWebContents() const OVERRIDE {
// We're holding a reference to api_function_, so we know it'll be valid
// until ReleaseRVH is called, and api_function_ (as a
@@ -169,7 +162,6 @@ class NotificationsApiDelegate : public NotificationDelegate {
const std::string extension_id_;
const std::string id_;
const std::string scoped_id_;
- int process_id_;
DISALLOW_COPY_AND_ASSIGN(NotificationsApiDelegate);
};
« no previous file with comments | « no previous file | chrome/browser/notifications/message_center_notification_manager.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698