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

Side by Side Diff: chrome/browser/component_updater/sw_reporter_installer_win.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 (c) 2014 The Chromium Authors. All rights reserved. 1 // Copyright (c) 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/sw_reporter_installer_win.h" 5 #include "chrome/browser/component_updater/sw_reporter_installer_win.h"
6 6
7 #include <stdint.h> 7 #include <stdint.h>
8 8
9 #include <map> 9 #include <map>
10 #include <string> 10 #include <string>
(...skipping 125 matching lines...) Expand 10 before | Expand all | Expand 10 after
136 return base::FilePath(FILE_PATH_LITERAL("SwReporter")); 136 return base::FilePath(FILE_PATH_LITERAL("SwReporter"));
137 } 137 }
138 138
139 void GetHash(std::vector<uint8_t>* hash) const override { GetPkHash(hash); } 139 void GetHash(std::vector<uint8_t>* hash) const override { GetPkHash(hash); }
140 140
141 std::string GetName() const override { return "Software Reporter Tool"; } 141 std::string GetName() const override { return "Software Reporter Tool"; }
142 142
143 update_client::InstallerAttributes GetInstallerAttributes() const override { 143 update_client::InstallerAttributes GetInstallerAttributes() const override {
144 return update_client::InstallerAttributes(); 144 return update_client::InstallerAttributes();
145 } 145 }
146 void AddMimeTypes(std::vector<std::string>* mime_types) const override {}
146 147
147 static std::string ID() { 148 static std::string ID() {
148 update_client::CrxComponent component; 149 update_client::CrxComponent component;
149 component.version = Version("0.0.0.0"); 150 component.version = Version("0.0.0.0");
150 GetPkHash(&component.pk_hash); 151 GetPkHash(&component.pk_hash);
151 return update_client::GetCrxComponentID(component); 152 return update_client::GetCrxComponentID(component);
152 } 153 }
153 154
154 private: 155 private:
155 static void GetPkHash(std::vector<uint8_t>* hash) { 156 static void GetPkHash(std::vector<uint8_t>* hash) {
(...skipping 96 matching lines...) Expand 10 before | Expand all | Expand 10 after
252 } 253 }
253 254
254 void RegisterProfilePrefsForSwReporter( 255 void RegisterProfilePrefsForSwReporter(
255 user_prefs::PrefRegistrySyncable* registry) { 256 user_prefs::PrefRegistrySyncable* registry) {
256 registry->RegisterStringPref(prefs::kSwReporterPromptVersion, ""); 257 registry->RegisterStringPref(prefs::kSwReporterPromptVersion, "");
257 258
258 registry->RegisterStringPref(prefs::kSwReporterPromptSeed, ""); 259 registry->RegisterStringPref(prefs::kSwReporterPromptSeed, "");
259 } 260 }
260 261
261 } // namespace component_updater 262 } // namespace component_updater
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698