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

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: rebase-update Created 6 years, 5 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..5b6fd7e0f1a9366c2cb28a9cfa54d6f375184f19 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 SamplingEvent;
+}
+
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.
+ scoped_ptr<extensions::SamplingEvent> sampling_event_;
+
DISALLOW_COPY_AND_ASSIGN(DownloadItemView);
};

Powered by Google App Engine
This is Rietveld 408576698