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

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

Issue 2338063004: Declare that OriginTrials component does not need wire protocol privacy. (Closed)
Patch Set: Created 4 years, 3 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 | 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 2016 The Chromium Authors. All rights reserved. 1 // Copyright 2016 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/origin_trials_component_installer.h" 5 #include "chrome/browser/component_updater/origin_trials_component_installer.h"
6 6
7 #include <utility> 7 #include <utility>
8 8
9 #include "base/bind.h" 9 #include "base/bind.h"
10 #include "base/command_line.h" 10 #include "base/command_line.h"
(...skipping 47 matching lines...) Expand 10 before | Expand all | Expand 10 after
58 // Test if the "origin-trials" key is present in the manifest. 58 // Test if the "origin-trials" key is present in the manifest.
59 return manifest.HasKey(kManifestOriginTrialsKey); 59 return manifest.HasKey(kManifestOriginTrialsKey);
60 } 60 }
61 61
62 bool OriginTrialsComponentInstallerTraits:: 62 bool OriginTrialsComponentInstallerTraits::
63 SupportsGroupPolicyEnabledComponentUpdates() const { 63 SupportsGroupPolicyEnabledComponentUpdates() const {
64 return false; 64 return false;
65 } 65 }
66 66
67 bool OriginTrialsComponentInstallerTraits::RequiresNetworkEncryption() const { 67 bool OriginTrialsComponentInstallerTraits::RequiresNetworkEncryption() const {
68 return true; 68 return false;
69 } 69 }
70 70
71 bool OriginTrialsComponentInstallerTraits::OnCustomInstall( 71 bool OriginTrialsComponentInstallerTraits::OnCustomInstall(
72 const base::DictionaryValue& manifest, 72 const base::DictionaryValue& manifest,
73 const base::FilePath& install_dir) { 73 const base::FilePath& install_dir) {
74 return true; 74 return true;
75 } 75 }
76 76
77 void OriginTrialsComponentInstallerTraits::ComponentReady( 77 void OriginTrialsComponentInstallerTraits::ComponentReady(
78 const base::Version& version, 78 const base::Version& version,
(...skipping 53 matching lines...) Expand 10 before | Expand all | Expand 10 after
132 const base::FilePath& user_data_dir) { 132 const base::FilePath& user_data_dir) {
133 std::unique_ptr<ComponentInstallerTraits> traits( 133 std::unique_ptr<ComponentInstallerTraits> traits(
134 new OriginTrialsComponentInstallerTraits()); 134 new OriginTrialsComponentInstallerTraits());
135 // |cus| will take ownership of |installer| during installer->Register(cus). 135 // |cus| will take ownership of |installer| during installer->Register(cus).
136 DefaultComponentInstaller* installer = 136 DefaultComponentInstaller* installer =
137 new DefaultComponentInstaller(std::move(traits)); 137 new DefaultComponentInstaller(std::move(traits));
138 installer->Register(cus, base::Closure()); 138 installer->Register(cus, base::Closure());
139 } 139 }
140 140
141 } // namespace component_updater 141 } // namespace component_updater
OLDNEW
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698