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

Side by Side Diff: chrome/common/variations/experiment_labels.cc

Issue 292663009: Move chrome/common/metrics/variations to chrome/common/variations. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 6 years, 7 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 | Annotate | Revision Log
OLDNEW
1 // Copyright 2013 The Chromium Authors. All rights reserved. 1 // Copyright 2013 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 #include "chrome/common/metrics/variations/experiment_labels.h" 5 #include "chrome/common/variations/experiment_labels.h"
6
7 #include <vector>
6 8
7 #include "base/logging.h" 9 #include "base/logging.h"
8 #include "base/strings/string_number_conversions.h" 10 #include "base/strings/string_number_conversions.h"
9 #include "base/strings/string_split.h" 11 #include "base/strings/string_split.h"
10 #include "base/strings/string_util.h" 12 #include "base/strings/string_util.h"
11 #include "base/strings/utf_string_conversions.h" 13 #include "base/strings/utf_string_conversions.h"
12 #include "chrome/installer/util/google_update_experiment_util.h" 14 #include "chrome/installer/util/google_update_experiment_util.h"
13 #include "components/variations/variations_associated_data.h" 15 #include "components/variations/variations_associated_data.h"
14 16
15 namespace chrome_variations { 17 namespace chrome_variations {
(...skipping 87 matching lines...) Expand 10 before | Expand all | Expand 10 after
103 DCHECK(!EndsWith(other_labels, separator, false)); 105 DCHECK(!EndsWith(other_labels, separator, false));
104 // Note that if either label is empty, a separator is not necessary. 106 // Note that if either label is empty, a separator is not necessary.
105 base::string16 combined_labels = other_labels; 107 base::string16 combined_labels = other_labels;
106 if (!other_labels.empty() && !variation_labels.empty()) 108 if (!other_labels.empty() && !variation_labels.empty())
107 combined_labels += separator; 109 combined_labels += separator;
108 combined_labels += variation_labels; 110 combined_labels += variation_labels;
109 return combined_labels; 111 return combined_labels;
110 } 112 }
111 113
112 } // namespace chrome_variations 114 } // namespace chrome_variations
OLDNEW
« no previous file with comments | « chrome/common/variations/experiment_labels.h ('k') | chrome/common/variations/experiment_labels_unittest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698