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

Side by Side Diff: chrome/browser/policy/configuration_policy_pref_store.cc

Issue 5624002: Move more code from headers to implementation. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Rebase Created 10 years 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 (c) 2010 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2010 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 "base/command_line.h" 7 #include "base/command_line.h"
8 #include "base/logging.h" 8 #include "base/logging.h"
9 #include "base/path_service.h" 9 #include "base/path_service.h"
10 #include "base/singleton.h" 10 #include "base/singleton.h"
(...skipping 306 matching lines...) Expand 10 before | Expand all | Expand 10 after
317 ConfigurationPolicyPrefStore::ConfigurationPolicyPrefStore( 317 ConfigurationPolicyPrefStore::ConfigurationPolicyPrefStore(
318 ConfigurationPolicyProvider* provider) 318 ConfigurationPolicyProvider* provider)
319 : provider_(provider), 319 : provider_(provider),
320 prefs_(new DictionaryValue()), 320 prefs_(new DictionaryValue()),
321 lower_priority_proxy_settings_overridden_(false), 321 lower_priority_proxy_settings_overridden_(false),
322 proxy_disabled_(false), 322 proxy_disabled_(false),
323 proxy_configuration_specified_(false), 323 proxy_configuration_specified_(false),
324 use_system_proxy_(false) { 324 use_system_proxy_(false) {
325 } 325 }
326 326
327 ConfigurationPolicyPrefStore::~ConfigurationPolicyPrefStore() {}
328
327 PrefStore::PrefReadError ConfigurationPolicyPrefStore::ReadPrefs() { 329 PrefStore::PrefReadError ConfigurationPolicyPrefStore::ReadPrefs() {
328 proxy_disabled_ = false; 330 proxy_disabled_ = false;
329 proxy_configuration_specified_ = false; 331 proxy_configuration_specified_ = false;
330 lower_priority_proxy_settings_overridden_ = false; 332 lower_priority_proxy_settings_overridden_ = false;
331 333
332 const bool success = (provider_ == NULL || provider_->Provide(this)); 334 const bool success = (provider_ == NULL || provider_->Provide(this));
333 FinalizeDefaultSearchPolicySettings(); 335 FinalizeDefaultSearchPolicySettings();
334 return success ? PrefStore::PREF_READ_ERROR_NONE : 336 return success ? PrefStore::PREF_READ_ERROR_NONE :
335 PrefStore::PREF_READ_ERROR_OTHER; 337 PrefStore::PREF_READ_ERROR_OTHER;
336 } 338 }
(...skipping 306 matching lines...) Expand 10 before | Expand all | Expand 10 after
643 std::string()); 645 std::string());
644 return; 646 return;
645 } 647 }
646 } 648 }
647 // Required entries are not there. Remove any related entries. 649 // Required entries are not there. Remove any related entries.
648 RemovePreferencesOfMap(kDefaultSearchPolicyMap, 650 RemovePreferencesOfMap(kDefaultSearchPolicyMap,
649 arraysize(kDefaultSearchPolicyMap)); 651 arraysize(kDefaultSearchPolicyMap));
650 } 652 }
651 653
652 } // namespace policy 654 } // namespace policy
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698