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

Side by Side Diff: chrome/browser/component_updater/pepper_flash_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 | « no previous file | chrome/browser/component_updater/pnacl_component_installer.cc » ('j') | 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/pepper_flash_component_installer.h" 5 #include "chrome/browser/component_updater/pepper_flash_component_installer.h"
6 6
7 #include <stddef.h> 7 #include <stddef.h>
8 8
9 #include <memory> 9 #include <memory>
10 #include <string> 10 #include <string>
(...skipping 179 matching lines...) Expand 10 before | Expand all | Expand 10 after
190 update_client::InstallerAttributes GetInstallerAttributes() const override; 190 update_client::InstallerAttributes GetInstallerAttributes() const override;
191 std::vector<std::string> GetMimeTypes() const override; 191 std::vector<std::string> GetMimeTypes() const override;
192 192
193 DISALLOW_COPY_AND_ASSIGN(FlashComponentInstallerTraits); 193 DISALLOW_COPY_AND_ASSIGN(FlashComponentInstallerTraits);
194 }; 194 };
195 195
196 FlashComponentInstallerTraits::FlashComponentInstallerTraits() {} 196 FlashComponentInstallerTraits::FlashComponentInstallerTraits() {}
197 197
198 bool FlashComponentInstallerTraits::SupportsGroupPolicyEnabledComponentUpdates() 198 bool FlashComponentInstallerTraits::SupportsGroupPolicyEnabledComponentUpdates()
199 const { 199 const {
200 return false; 200 return true;
201 } 201 }
202 202
203 bool FlashComponentInstallerTraits::RequiresNetworkEncryption() const { 203 bool FlashComponentInstallerTraits::RequiresNetworkEncryption() const {
204 return false; 204 return false;
205 } 205 }
206 206
207 bool FlashComponentInstallerTraits::OnCustomInstall( 207 bool FlashComponentInstallerTraits::OnCustomInstall(
208 const base::DictionaryValue& manifest, 208 const base::DictionaryValue& manifest,
209 const base::FilePath& install_dir) { 209 const base::FilePath& install_dir) {
210 #if defined(OS_LINUX) 210 #if defined(OS_LINUX)
(...skipping 73 matching lines...) Expand 10 before | Expand all | Expand 10 after
284 std::unique_ptr<ComponentInstallerTraits> traits( 284 std::unique_ptr<ComponentInstallerTraits> traits(
285 new FlashComponentInstallerTraits); 285 new FlashComponentInstallerTraits);
286 // |cus| will take ownership of |installer| during installer->Register(cus). 286 // |cus| will take ownership of |installer| during installer->Register(cus).
287 DefaultComponentInstaller* installer = 287 DefaultComponentInstaller* installer =
288 new DefaultComponentInstaller(std::move(traits)); 288 new DefaultComponentInstaller(std::move(traits));
289 installer->Register(cus, base::Closure()); 289 installer->Register(cus, base::Closure());
290 #endif // defined(GOOGLE_CHROME_BUILD) 290 #endif // defined(GOOGLE_CHROME_BUILD)
291 } 291 }
292 292
293 } // namespace component_updater 293 } // namespace component_updater
OLDNEW
« no previous file with comments | « no previous file | chrome/browser/component_updater/pnacl_component_installer.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698