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

Unified Diff: chrome/browser/ui/views/extensions/device_permissions_dialog_view.cc

Issue 1075593003: Initialize observer_ to nullptr in DevicePermissionsDialogView. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 5 years, 8 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 | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/browser/ui/views/extensions/device_permissions_dialog_view.cc
diff --git a/chrome/browser/ui/views/extensions/device_permissions_dialog_view.cc b/chrome/browser/ui/views/extensions/device_permissions_dialog_view.cc
index a4acefe0e323ba2cd245a165363cbca88b88caad..9443cee949ae347e3b110bc4895444489164042d 100644
--- a/chrome/browser/ui/views/extensions/device_permissions_dialog_view.cc
+++ b/chrome/browser/ui/views/extensions/device_permissions_dialog_view.cc
@@ -44,7 +44,7 @@ class DevicePermissionsTableModel
private:
scoped_refptr<DevicePermissionsPrompt::Prompt> prompt_;
- ui::TableModelObserver* observer_;
+ ui::TableModelObserver* observer_ = nullptr;
benwells 2015/04/08 22:53:22 since you already have an initializer list in the
Reilly Grant (use Gerrit) 2015/04/08 22:57:25 This method guarantees that any future constructor
benwells 2015/04/08 23:44:29 Yes, I understand that this will be caught by all
Reilly Grant (use Gerrit) 2015/04/09 00:06:35 I disagree that this is confusing. This method is
};
int DevicePermissionsTableModel::RowCount() {
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698