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

Side by Side Diff: chrome/browser/ui/send_feedback_experiment.cc

Issue 12490012: Send Feedback Experiment (Closed) Base URL: http://git.chromium.org/chromium/src.git@master
Patch Set: -static Created 7 years, 9 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 unified diff | Download patch
OLDNEW
(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
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698