Index: chrome/browser/download/download_util.h |
diff --git a/chrome/browser/download/download_util.h b/chrome/browser/download/download_util.h |
index 60288a31007a692d4728603f20904f2f23b1419d..27e149c3861e5631f7aedf72b77360fc76317440 100644 |
--- a/chrome/browser/download/download_util.h |
+++ b/chrome/browser/download/download_util.h |
@@ -13,6 +13,7 @@ |
#include "base/files/file_path.h" |
#include "base/memory/ref_counted.h" |
#include "base/strings/string16.h" |
+#include "base/strings/string_util.h" |
#include "ui/gfx/native_widget_types.h" |
#if defined(TOOLKIT_VIEWS) |
@@ -115,6 +116,28 @@ void RecordDownloadCount(ChromeDownloadCountTypes type); |
// Record initiation of a download from a specific source. |
void RecordDownloadSource(ChromeDownloadSource source); |
+// Summer/Fall 2013 Finch experiment strings ----------------------------------- |
+// Only deployed to English speakers, don't need translation. |
+ |
+// Study and condition names. |
+const char kFinchTrialName[] = "MalwareDownloadWarning"; |
asanka
2013/08/09 18:50:17
Declare the strings here, and move the definitions
felt
2013/08/09 19:13:15
Done.
|
+const char kCondition1Control[] = "Condition1Control"; |
+const char kCondition2Control[] = "Condition2Control"; |
+const char kCondition3Malicious[] = "Condition3Malicious"; |
+const char kCondition4Unsafe[] = "Condition4Unsafe"; |
+const char kCondition5Dangerous[] = "Condition5Dangerous"; |
+const char kCondition6Harmful[] = "Condition6Harmful"; |
+const char kCondition7DiscardSecond[] = "Condition7DiscardSecond"; |
+const char kCondition8DiscardFirst[] = "Condition8DiscardFirst"; |
+const char kCondition9SafeDiscard[] = "Condition9SafeDiscard"; |
+const char kCondition10SafeDontRun[] = "Condition10SafeDontRun"; |
+ |
+// Helper for getting the appropriate message for a Finch trial. |
+// You should only invoke this if you believe you're in the kFinchTrialName |
+// finch trial; if you aren't, use the default string and don't invoke this. |
+string16 AssembleMalwareFinchString(const std::string& trialCondition, |
+ const string16& elided_filename); |
+ |
} // namespace download_util |
#endif // CHROME_BROWSER_DOWNLOAD_DOWNLOAD_UTIL_H_ |