Commit 87ff1a73 authored by yoshiki's avatar yoshiki Committed by Commit bot

[Download Notification] Clean Up: Initialize properties in header file

This patch is just a cleanup. No functionality is changed.

BUG=none
TEST=none

Review URL: https://codereview.chromium.org/1129023005

Cr-Commit-Position: refs/heads/master@{#329822}
parent 9f853ad8
...@@ -74,10 +74,7 @@ std::string DownloadNotificationItem::NotificationWatcher::id() const { ...@@ -74,10 +74,7 @@ std::string DownloadNotificationItem::NotificationWatcher::id() const {
DownloadNotificationItem::DownloadNotificationItem(content::DownloadItem* item, DownloadNotificationItem::DownloadNotificationItem(content::DownloadItem* item,
Profile* profile, Profile* profile,
Delegate* delegate) Delegate* delegate)
: openable_(false), : profile_(profile),
downloading_(false),
image_resource_id_(0),
profile_(profile),
watcher_(new NotificationWatcher(this)), watcher_(new NotificationWatcher(this)),
item_(item), item_(item),
delegate_(delegate) { delegate_(delegate) {
......
...@@ -103,17 +103,14 @@ class DownloadNotificationItem : public content::DownloadItem::Observer { ...@@ -103,17 +103,14 @@ class DownloadNotificationItem : public content::DownloadItem::Observer {
scoped_ptr<std::vector<DownloadCommands::Command>> GetPossibleActions() const; scoped_ptr<std::vector<DownloadCommands::Command>> GetPossibleActions() const;
bool openable_; bool openable_ = false;
bool downloading_; bool downloading_ = false;
int image_resource_id_; int image_resource_id_ = 0;
Profile* profile_; Profile* profile_;
scoped_refptr<NotificationWatcher> watcher_; scoped_refptr<NotificationWatcher> watcher_;
scoped_ptr<Notification> notification_; scoped_ptr<Notification> notification_;
content::DownloadItem* item_; content::DownloadItem* item_;
scoped_ptr<std::vector<DownloadCommands::Command>> button_actions_; scoped_ptr<std::vector<DownloadCommands::Command>> button_actions_;
Delegate* const delegate_; Delegate* const delegate_;
DISALLOW_COPY_AND_ASSIGN(DownloadNotificationItem); DISALLOW_COPY_AND_ASSIGN(DownloadNotificationItem);
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment