Chromium Code Reviews| OLD | NEW |
|---|---|
| (Empty) | |
| 1 // Copyright (c) 2013 The Chromium Authors. All rights reserved. | |
| 2 // Use of this source code is governed by a BSD-style license that can be | |
| 3 // found in the LICENSE file. | |
| 4 | |
| 5 #include "chrome/browser/ui/send_feedback_experiment.h" | |
| 6 | |
| 7 #include "base/command_line.h" | |
|
sky
2013/03/15 23:23:42
Doesn't seem like you need this include.
Harry McCleave
2013/03/19 03:11:32
Done.
| |
| 8 #include "base/metrics/field_trial.h" | |
| 9 | |
| 10 namespace chrome { | |
| 11 namespace send_feedback_experiment { | |
| 12 // Constants for Send Feedback Link Location Experiment | |
| 13 const char kSendFeedbackLinkExperimentName[] = | |
|
sky
2013/03/15 23:23:42
nit: newline between 11/12.
Harry McCleave
2013/03/19 03:11:32
Done.
| |
| 14 "SendFeedbackLinkLocation"; | |
| 15 const char kSendFeedbackLinkExperimentAltText[] = "alt-text"; | |
| 16 const char kSendFeedbackLinkExperimentAltLocation[] = "alt-location"; | |
| 17 const char kSendFeedbackLinkExperimentAltTextAndLocation[] = | |
| 18 "alt-text-and-location"; | |
| 19 | |
| 20 bool UseAlternateText() { | |
| 21 return base::FieldTrialList::TrialExists(kSendFeedbackLinkExperimentName) && | |
| 22 (base::FieldTrialList::FindFullName(kSendFeedbackLinkExperimentName) == | |
| 23 kSendFeedbackLinkExperimentAltText || | |
| 24 base::FieldTrialList::FindFullName(kSendFeedbackLinkExperimentName) == | |
| 25 kSendFeedbackLinkExperimentAltTextAndLocation); | |
| 26 } | |
| 27 | |
| 28 bool UseAlternateLocation() { | |
| 29 return base::FieldTrialList::TrialExists(kSendFeedbackLinkExperimentName) && | |
| 30 (base::FieldTrialList::FindFullName(kSendFeedbackLinkExperimentName) == | |
| 31 kSendFeedbackLinkExperimentAltLocation || | |
| 32 base::FieldTrialList::FindFullName(kSendFeedbackLinkExperimentName) == | |
| 33 kSendFeedbackLinkExperimentAltTextAndLocation); | |
| 34 } | |
| 35 | |
| 36 } // send_feedback_experiment | |
| 37 } // chrome | |
| OLD | NEW |