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

Side by Side Diff: chrome/browser/component_updater/widevine_cdm_component_installer.cc

Issue 2273443002: Declare the binary components support the group policy to enable/disable them. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 4 years, 4 months 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
« no previous file with comments | « chrome/browser/component_updater/swiftshader_component_installer.cc ('k') | no next file » | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright (c) 2013 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2013 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/component_updater/widevine_cdm_component_installer.h" 5 #include "chrome/browser/component_updater/widevine_cdm_component_installer.h"
6 6
7 #include <stddef.h> 7 #include <stddef.h>
8 #include <stdint.h> 8 #include <stdint.h>
9 #include <string.h> 9 #include <string.h>
10 #include <memory> 10 #include <memory>
(...skipping 263 matching lines...) Expand 10 before | Expand all | Expand 10 after
274 std::unique_ptr<base::DictionaryValue> manifest); 274 std::unique_ptr<base::DictionaryValue> manifest);
275 275
276 DISALLOW_COPY_AND_ASSIGN(WidevineCdmComponentInstallerTraits); 276 DISALLOW_COPY_AND_ASSIGN(WidevineCdmComponentInstallerTraits);
277 }; 277 };
278 278
279 WidevineCdmComponentInstallerTraits::WidevineCdmComponentInstallerTraits() { 279 WidevineCdmComponentInstallerTraits::WidevineCdmComponentInstallerTraits() {
280 } 280 }
281 281
282 bool WidevineCdmComponentInstallerTraits:: 282 bool WidevineCdmComponentInstallerTraits::
283 SupportsGroupPolicyEnabledComponentUpdates() const { 283 SupportsGroupPolicyEnabledComponentUpdates() const {
284 return false; 284 return true;
285 } 285 }
286 286
287 bool WidevineCdmComponentInstallerTraits::RequiresNetworkEncryption() const { 287 bool WidevineCdmComponentInstallerTraits::RequiresNetworkEncryption() const {
288 return false; 288 return false;
289 } 289 }
290 290
291 bool WidevineCdmComponentInstallerTraits::OnCustomInstall( 291 bool WidevineCdmComponentInstallerTraits::OnCustomInstall(
292 const base::DictionaryValue& manifest, 292 const base::DictionaryValue& manifest,
293 const base::FilePath& install_dir) { 293 const base::FilePath& install_dir) {
294 return true; 294 return true;
(...skipping 119 matching lines...) Expand 10 before | Expand all | Expand 10 after
414 std::unique_ptr<ComponentInstallerTraits> traits( 414 std::unique_ptr<ComponentInstallerTraits> traits(
415 new WidevineCdmComponentInstallerTraits); 415 new WidevineCdmComponentInstallerTraits);
416 // |cus| will take ownership of |installer| during installer->Register(cus). 416 // |cus| will take ownership of |installer| during installer->Register(cus).
417 DefaultComponentInstaller* installer = 417 DefaultComponentInstaller* installer =
418 new DefaultComponentInstaller(std::move(traits)); 418 new DefaultComponentInstaller(std::move(traits));
419 installer->Register(cus, base::Closure()); 419 installer->Register(cus, base::Closure());
420 #endif // defined(WIDEVINE_CDM_AVAILABLE) && defined(WIDEVINE_CDM_IS_COMPONENT) 420 #endif // defined(WIDEVINE_CDM_AVAILABLE) && defined(WIDEVINE_CDM_IS_COMPONENT)
421 } 421 }
422 422
423 } // namespace component_updater 423 } // namespace component_updater
OLDNEW
« no previous file with comments | « chrome/browser/component_updater/swiftshader_component_installer.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698