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

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

Issue 2266543002: Consistently use namespaced base::Version in component_updater code. (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
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 <memory> 10 #include <memory>
(...skipping 137 matching lines...) Expand 10 before | Expand all | Expand 10 after
148 148
149 update_client::InstallerAttributes GetInstallerAttributes() const override { 149 update_client::InstallerAttributes GetInstallerAttributes() const override {
150 return update_client::InstallerAttributes(); 150 return update_client::InstallerAttributes();
151 } 151 }
152 std::vector<std::string> GetMimeTypes() const override { 152 std::vector<std::string> GetMimeTypes() const override {
153 return std::vector<std::string>(); 153 return std::vector<std::string>();
154 } 154 }
155 155
156 static std::string ID() { 156 static std::string ID() {
157 update_client::CrxComponent component; 157 update_client::CrxComponent component;
158 component.version = Version("0.0.0.0"); 158 component.version = base::Version("0.0.0.0");
159 GetPkHash(&component.pk_hash); 159 GetPkHash(&component.pk_hash);
160 return update_client::GetCrxComponentID(component); 160 return update_client::GetCrxComponentID(component);
161 } 161 }
162 162
163 private: 163 private:
164 static void GetPkHash(std::vector<uint8_t>* hash) { 164 static void GetPkHash(std::vector<uint8_t>* hash) {
165 DCHECK(hash); 165 DCHECK(hash);
166 hash->assign(kSha256Hash, kSha256Hash + sizeof(kSha256Hash)); 166 hash->assign(kSha256Hash, kSha256Hash + sizeof(kSha256Hash));
167 } 167 }
168 }; 168 };
(...skipping 92 matching lines...) Expand 10 before | Expand all | Expand 10 after
261 } 261 }
262 262
263 void RegisterProfilePrefsForSwReporter( 263 void RegisterProfilePrefsForSwReporter(
264 user_prefs::PrefRegistrySyncable* registry) { 264 user_prefs::PrefRegistrySyncable* registry) {
265 registry->RegisterStringPref(prefs::kSwReporterPromptVersion, ""); 265 registry->RegisterStringPref(prefs::kSwReporterPromptVersion, "");
266 266
267 registry->RegisterStringPref(prefs::kSwReporterPromptSeed, ""); 267 registry->RegisterStringPref(prefs::kSwReporterPromptSeed, "");
268 } 268 }
269 269
270 } // namespace component_updater 270 } // namespace component_updater
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698