app_list: Re-enable people search.
[chromium-blink-merge.git] / chrome / browser / extensions / api / experience_sampling_private / experience_sampling_private_api.cc
blob1b386e3cdbaa1ba19c95def079047ef90d9c5b22
1 // Copyright 2014 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.
5 #include "chrome/browser/extensions/api/experience_sampling_private/experience_sampling_private_api.h"
7 #include "base/metrics/field_trial.h"
8 #include "chrome/common/extensions/api/experience_sampling_private.h"
10 namespace sampling = extensions::api::experience_sampling_private;
12 namespace extensions {
14 bool ExperienceSamplingPrivateGetBrowserInfoFunction::RunAsync() {
15 std::string field_trials;
16 sampling::BrowserInfo info;
18 base::FieldTrialList::StatesToString(&field_trials);
19 info.variations = field_trials;
21 SetResult(info.ToValue().release());
22 SendResponse(true /* success */);
23 return true;
26 } // namespace extensions