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 404 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
415 SearchTermsDataForValidation() {} | 415 SearchTermsDataForValidation() {} |
416 | 416 |
417 // Implementation of SearchTermsData. | 417 // Implementation of SearchTermsData. |
418 virtual std::string GoogleBaseURLValue() const { | 418 virtual std::string GoogleBaseURLValue() const { |
419 return "http://www.google.com/"; | 419 return "http://www.google.com/"; |
420 } | 420 } |
421 virtual std::string GetApplicationLocale() const { | 421 virtual std::string GetApplicationLocale() const { |
422 return "en"; | 422 return "en"; |
423 } | 423 } |
424 #if defined(OS_WIN) && defined(GOOGLE_CHROME_BUILD) | 424 #if defined(OS_WIN) && defined(GOOGLE_CHROME_BUILD) |
425 virtual std::wstring GetRlzParameterValue() const { | 425 virtual string16 GetRlzParameterValue() const { |
426 return std::wstring(); | 426 return string16(); |
427 } | 427 } |
428 #endif | 428 #endif |
429 private: | 429 private: |
430 DISALLOW_COPY_AND_ASSIGN(SearchTermsDataForValidation); | 430 DISALLOW_COPY_AND_ASSIGN(SearchTermsDataForValidation); |
431 }; | 431 }; |
432 | 432 |
433 } // namespace | 433 } // namespace |
434 | 434 |
435 void ConfigurationPolicyPrefKeeper::FinalizeDefaultSearchPolicySettings() { | 435 void ConfigurationPolicyPrefKeeper::FinalizeDefaultSearchPolicySettings() { |
436 bool enabled = true; | 436 bool enabled = true; |
(...skipping 375 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
812 // Update the initialization flag. | 812 // Update the initialization flag. |
813 if (!initialization_complete_ && | 813 if (!initialization_complete_ && |
814 provider_->IsInitializationComplete()) { | 814 provider_->IsInitializationComplete()) { |
815 initialization_complete_ = true; | 815 initialization_complete_ = true; |
816 FOR_EACH_OBSERVER(PrefStore::Observer, observers_, | 816 FOR_EACH_OBSERVER(PrefStore::Observer, observers_, |
817 OnInitializationCompleted()); | 817 OnInitializationCompleted()); |
818 } | 818 } |
819 } | 819 } |
820 | 820 |
821 } // namespace policy | 821 } // namespace policy |
OLD | NEW |