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

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 missing constants to Cocoa version 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..14f07aaf428fb70d80cb37f8f9e54842ce13a532 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,9 @@ class DownloadItemView : public views::ButtonListener,
// and reload the icon.
base::FilePath last_download_item_path_;
+ // ExperienceSampling: This maintains event state.
msw 2014/08/13 20:11:38 This comment doesn't really add much value... expl
Chris Thompson 2014/08/13 21:18:00 Good point. I've rewritten the comment to explain
+ scoped_ptr<extensions::ExperienceSamplingEvent> sampling_event_;
msw 2014/08/13 20:11:38 Why isn't all this done at the cross-platform Down
asanka 2014/08/13 20:59:30 Yeah. chrome://downloads also provides a UI surfac
Chris Thompson 2014/08/13 21:18:00 sampling_event_ should live until the user makes a
Chris Thompson 2014/08/13 21:18:00 Simpler, cross-platform implementation would be id
msw 2014/08/14 01:48:33 I wonder if it'd take just a couple new DownloadIt
+
DISALLOW_COPY_AND_ASSIGN(DownloadItemView);
};

Powered by Google App Engine
This is Rietveld 408576698