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

Unified Diff: chrome/browser/extensions/api/experience_sampling_private/experience_sampling.h

Issue 402293002: Experience sampling instrumentation for dangerous downloads warnings (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@sampling-api
Patch Set: Updating string constants in Cocoa too 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/extensions/api/experience_sampling_private/experience_sampling.h
diff --git a/chrome/browser/extensions/api/experience_sampling_private/experience_sampling.h b/chrome/browser/extensions/api/experience_sampling_private/experience_sampling.h
index e1d1ef1e6112d5535a7df9abd36286dca5699f8f..c70ebbb974cb1a8d5eb2f233463a5c3bc37f2a53 100644
--- a/chrome/browser/extensions/api/experience_sampling_private/experience_sampling.h
+++ b/chrome/browser/extensions/api/experience_sampling_private/experience_sampling.h
@@ -20,11 +20,18 @@ using api::experience_sampling_private::UIElement;
class ExperienceSamplingEvent {
public:
+ // String constants for user decision events.
static const char kProceed[];
static const char kDeny[];
+ static const char kIgnore[];
static const char kCancel[];
static const char kReload[];
+ // String constants for event names.
+ static const char kMaliciousDownload[];
+ static const char kDangerousDownload[];
+ static const char kDownloadDangerPrompt[];
+
static scoped_ptr<ExperienceSamplingEvent> Create(
const std::string& element_name,
const GURL& destination,

Powered by Google App Engine
This is Rietveld 408576698