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

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

Issue 2154773002: Implement Just-In-Time Flash updates. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: First Review Pass 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
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 "base/bind.h" 7 #include "base/bind.h"
8 #include "base/command_line.h" 8 #include "base/command_line.h"
9 #include "base/files/file_path.h" 9 #include "base/files/file_path.h"
10 #include "base/path_service.h" 10 #include "base/path_service.h"
(...skipping 89 matching lines...) Expand 10 before | Expand all | Expand 10 after
100 100
101 std::string OriginTrialsComponentInstallerTraits::GetName() const { 101 std::string OriginTrialsComponentInstallerTraits::GetName() const {
102 return "Origin Trials"; 102 return "Origin Trials";
103 } 103 }
104 104
105 update_client::InstallerAttributes 105 update_client::InstallerAttributes
106 OriginTrialsComponentInstallerTraits::GetInstallerAttributes() const { 106 OriginTrialsComponentInstallerTraits::GetInstallerAttributes() const {
107 return update_client::InstallerAttributes(); 107 return update_client::InstallerAttributes();
108 } 108 }
109 109
110 void OriginTrialsComponentInstallerTraits::AddMimeTypes(
111 std::vector<std::string>* mime_types) const {
112 }
113
110 void RegisterOriginTrialsComponent(ComponentUpdateService* cus, 114 void RegisterOriginTrialsComponent(ComponentUpdateService* cus,
111 const base::FilePath& user_data_dir) { 115 const base::FilePath& user_data_dir) {
112 std::unique_ptr<ComponentInstallerTraits> traits( 116 std::unique_ptr<ComponentInstallerTraits> traits(
113 new OriginTrialsComponentInstallerTraits()); 117 new OriginTrialsComponentInstallerTraits());
114 // |cus| will take ownership of |installer| during installer->Register(cus). 118 // |cus| will take ownership of |installer| during installer->Register(cus).
115 DefaultComponentInstaller* installer = 119 DefaultComponentInstaller* installer =
116 new DefaultComponentInstaller(std::move(traits)); 120 new DefaultComponentInstaller(std::move(traits));
117 installer->Register(cus, base::Closure()); 121 installer->Register(cus, base::Closure());
118 } 122 }
119 123
120 } // namespace component_updater 124 } // namespace component_updater
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698