| OLD | NEW |
| 1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2012 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/plugins/plugins_resource_service.h" | 5 #include "chrome/browser/plugins/plugins_resource_service.h" |
| 6 | 6 |
| 7 #include "base/command_line.h" | 7 #include "base/command_line.h" |
| 8 #include "base/prefs/pref_registry_simple.h" | 8 #include "base/prefs/pref_registry_simple.h" |
| 9 #include "base/prefs/pref_service.h" | 9 #include "base/prefs/pref_service.h" |
| 10 #include "chrome/browser/plugins/plugin_finder.h" | 10 #include "chrome/browser/plugins/plugin_finder.h" |
| (...skipping 61 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 72 PluginsResourceService::~PluginsResourceService() { | 72 PluginsResourceService::~PluginsResourceService() { |
| 73 } | 73 } |
| 74 | 74 |
| 75 // static | 75 // static |
| 76 void PluginsResourceService::RegisterPrefs(PrefRegistrySimple* registry) { | 76 void PluginsResourceService::RegisterPrefs(PrefRegistrySimple* registry) { |
| 77 registry->RegisterDictionaryPref(prefs::kPluginsMetadata, | 77 registry->RegisterDictionaryPref(prefs::kPluginsMetadata, |
| 78 new base::DictionaryValue()); | 78 new base::DictionaryValue()); |
| 79 registry->RegisterStringPref(prefs::kPluginsResourceCacheUpdate, "0"); | 79 registry->RegisterStringPref(prefs::kPluginsResourceCacheUpdate, "0"); |
| 80 } | 80 } |
| 81 | 81 |
| 82 void PluginsResourceService::Unpack(const DictionaryValue& parsed_json) { | 82 void PluginsResourceService::Unpack(const base::DictionaryValue& parsed_json) { |
| 83 prefs_->Set(prefs::kPluginsMetadata, parsed_json); | 83 prefs_->Set(prefs::kPluginsMetadata, parsed_json); |
| 84 PluginFinder::GetInstance()->ReinitializePlugins(&parsed_json); | 84 PluginFinder::GetInstance()->ReinitializePlugins(&parsed_json); |
| 85 } | 85 } |
| OLD | NEW |