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

Unified Diff: chrome/browser/ui/views/download/download_item_view.h

Issue 402293002: Experience sampling instrumentation for dangerous downloads warnings (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@sampling-api
Patch Set: Add default actions for tests Created 6 years, 4 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
Index: chrome/browser/ui/views/download/download_item_view.h
diff --git a/chrome/browser/ui/views/download/download_item_view.h b/chrome/browser/ui/views/download/download_item_view.h
index 9920bc47e3d7b8739bf3ab88e3edc125b6a6e1af..2dce52f3f6dffb41511420de93938b1921f98e46 100644
--- a/chrome/browser/ui/views/download/download_item_view.h
+++ b/chrome/browser/ui/views/download/download_item_view.h
@@ -38,6 +38,10 @@
class DownloadShelfView;
class DownloadShelfContextMenuView;
+namespace extensions {
+class ExperienceSamplingEvent;
+}
+
namespace gfx {
class Image;
class ImageSkia;
@@ -339,6 +343,10 @@ class DownloadItemView : public views::ButtonListener,
// and reload the icon.
base::FilePath last_download_item_path_;
+ // ExperienceSampling: This tracks dangerous/malicious downloads warning UI
+ // and the user's decisions about it.
+ scoped_ptr<extensions::ExperienceSamplingEvent> sampling_event_;
+
DISALLOW_COPY_AND_ASSIGN(DownloadItemView);
};

Powered by Google App Engine
This is Rietveld 408576698