OLD | NEW |
---|---|
(Empty) | |
1 // Copyright 2012 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/search_engines/search_terms_data_android.h" | |
6 | |
7 base::LazyInstance<string16>::Leaky | |
8 SearchTermsDataAndroid::rlz_parameter_value_ = LAZY_INSTANCE_INITIALIZER; | |
9 base::LazyInstance<std::string>::Leaky SearchTermsDataAndroid::search_client_ = | |
Peter Kasting
2012/12/05 21:28:47
Tiny nit: Just for consistency, might want to inst
gone
2012/12/06 01:43:58
Done.
| |
10 LAZY_INSTANCE_INITIALIZER; | |
11 | |
12 string16 SearchTermsDataAndroid::GetRlzParameterValue() { | |
13 return rlz_parameter_value_.Get(); | |
14 } | |
15 | |
16 void SearchTermsDataAndroid::SetRlzParameterValue(const string16& rlz) { | |
17 rlz_parameter_value_.Get() = rlz; | |
18 } | |
19 | |
20 std::string SearchTermsDataAndroid::GetSearchClient() { | |
21 return search_client_.Get(); | |
22 } | |
23 | |
24 void SearchTermsDataAndroid::SetSearchClient(const std::string& client) { | |
25 search_client_.Get() = client; | |
26 } | |
OLD | NEW |