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

Side by Side Diff: chrome/browser/component_updater/ev_whitelist_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 2014 The Chromium Authors. All rights reserved. 1 // Copyright 2014 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/ev_whitelist_component_installer.h" 5 #include "chrome/browser/component_updater/ev_whitelist_component_installer.h"
6 6
7 #include <string> 7 #include <string>
8 #include <utility> 8 #include <utility>
9 #include <vector> 9 #include <vector>
10 10
(...skipping 118 matching lines...) Expand 10 before | Expand all | Expand 10 after
129 129
130 std::string EVWhitelistComponentInstallerTraits::GetName() const { 130 std::string EVWhitelistComponentInstallerTraits::GetName() const {
131 return kEVWhitelistManifestName; 131 return kEVWhitelistManifestName;
132 } 132 }
133 133
134 update_client::InstallerAttributes 134 update_client::InstallerAttributes
135 EVWhitelistComponentInstallerTraits::GetInstallerAttributes() const { 135 EVWhitelistComponentInstallerTraits::GetInstallerAttributes() const {
136 return update_client::InstallerAttributes(); 136 return update_client::InstallerAttributes();
137 } 137 }
138 138
139 void EVWhitelistComponentInstallerTraits::AddMimeTypes(
140 std::vector<std::string>* mime_types) const {
141 }
142
139 void RegisterEVWhitelistComponent(ComponentUpdateService* cus, 143 void RegisterEVWhitelistComponent(ComponentUpdateService* cus,
140 const base::FilePath& user_data_dir) { 144 const base::FilePath& user_data_dir) {
141 VLOG(1) << "Registering EV whitelist component."; 145 VLOG(1) << "Registering EV whitelist component.";
142 146
143 std::unique_ptr<ComponentInstallerTraits> traits( 147 std::unique_ptr<ComponentInstallerTraits> traits(
144 new EVWhitelistComponentInstallerTraits()); 148 new EVWhitelistComponentInstallerTraits());
145 // |cus| will take ownership of |installer| during installer->Register(cus). 149 // |cus| will take ownership of |installer| during installer->Register(cus).
146 DefaultComponentInstaller* installer = 150 DefaultComponentInstaller* installer =
147 new DefaultComponentInstaller(std::move(traits)); 151 new DefaultComponentInstaller(std::move(traits));
148 installer->Register(cus, base::Closure()); 152 installer->Register(cus, base::Closure());
149 153
150 content::BrowserThread::PostAfterStartupTask( 154 content::BrowserThread::PostAfterStartupTask(
151 FROM_HERE, content::BrowserThread::GetBlockingPool(), 155 FROM_HERE, content::BrowserThread::GetBlockingPool(),
152 base::Bind(&DeleteWhitelistCopy, user_data_dir)); 156 base::Bind(&DeleteWhitelistCopy, user_data_dir));
153 } 157 }
154 158
155 } // namespace component_updater 159 } // namespace component_updater
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698