| OLD | NEW |
| 1 // Copyright (c) 2011 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2011 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/browser/policy/configuration_policy_pref_store.h" | 5 #include "chrome/browser/policy/configuration_policy_pref_store.h" |
| 6 | 6 |
| 7 #include <map> | 7 #include <map> |
| 8 #include <set> | 8 #include <set> |
| 9 #include <string> | 9 #include <string> |
| 10 #include <vector> | 10 #include <vector> |
| (...skipping 406 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 417 SearchTermsDataForValidation() {} | 417 SearchTermsDataForValidation() {} |
| 418 | 418 |
| 419 // Implementation of SearchTermsData. | 419 // Implementation of SearchTermsData. |
| 420 virtual std::string GoogleBaseURLValue() const { | 420 virtual std::string GoogleBaseURLValue() const { |
| 421 return "http://www.google.com/"; | 421 return "http://www.google.com/"; |
| 422 } | 422 } |
| 423 virtual std::string GetApplicationLocale() const { | 423 virtual std::string GetApplicationLocale() const { |
| 424 return "en"; | 424 return "en"; |
| 425 } | 425 } |
| 426 #if defined(OS_WIN) && defined(GOOGLE_CHROME_BUILD) | 426 #if defined(OS_WIN) && defined(GOOGLE_CHROME_BUILD) |
| 427 virtual string16 GetRlzParameterValue() const { | 427 virtual std::wstring GetRlzParameterValue() const { |
| 428 return string16(); | 428 return std::wstring(); |
| 429 } | 429 } |
| 430 #endif | 430 #endif |
| 431 private: | 431 private: |
| 432 DISALLOW_COPY_AND_ASSIGN(SearchTermsDataForValidation); | 432 DISALLOW_COPY_AND_ASSIGN(SearchTermsDataForValidation); |
| 433 }; | 433 }; |
| 434 | 434 |
| 435 } // namespace | 435 } // namespace |
| 436 | 436 |
| 437 void ConfigurationPolicyPrefKeeper::FinalizeDefaultSearchPolicySettings() { | 437 void ConfigurationPolicyPrefKeeper::FinalizeDefaultSearchPolicySettings() { |
| 438 bool enabled = true; | 438 bool enabled = true; |
| (...skipping 431 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 870 // Update the initialization flag. | 870 // Update the initialization flag. |
| 871 if (!initialization_complete_ && | 871 if (!initialization_complete_ && |
| 872 provider_->IsInitializationComplete()) { | 872 provider_->IsInitializationComplete()) { |
| 873 initialization_complete_ = true; | 873 initialization_complete_ = true; |
| 874 FOR_EACH_OBSERVER(PrefStore::Observer, observers_, | 874 FOR_EACH_OBSERVER(PrefStore::Observer, observers_, |
| 875 OnInitializationCompleted()); | 875 OnInitializationCompleted()); |
| 876 } | 876 } |
| 877 } | 877 } |
| 878 | 878 |
| 879 } // namespace policy | 879 } // namespace policy |
| OLD | NEW |