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

Unified Diff: chrome/browser/component_updater/recovery_component_installer.cc

Issue 2624583002: Remove redundant c_str() calls. (Closed)
Patch Set: Created 3 years, 11 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 side-by-side diff with in-line comments
Download patch
Index: chrome/browser/component_updater/recovery_component_installer.cc
diff --git a/chrome/browser/component_updater/recovery_component_installer.cc b/chrome/browser/component_updater/recovery_component_installer.cc
index 868e5c7e9a1613980a612fc7ffc2caccc0389417..4b17d43149113bd4610c0792f065d0eeabcd642a 100644
--- a/chrome/browser/component_updater/recovery_component_installer.cc
+++ b/chrome/browser/component_updater/recovery_component_installer.cc
@@ -173,7 +173,7 @@ void DoElevatedInstallRecoveryComponent(const base::FilePath& path) {
return;
std::string proposed_version;
manifest->GetStringASCII("version", &proposed_version);
- const base::Version version(proposed_version.c_str());
+ const base::Version version(proposed_version);
if (!version.IsValid())
return;
@@ -427,7 +427,7 @@ bool RecoveryComponentInstaller::DoInstall(
return false;
std::string proposed_version;
manifest.GetStringASCII("version", &proposed_version);
- base::Version version(proposed_version.c_str());
+ base::Version version(proposed_version);
if (!version.IsValid())
return false;
if (current_version_.CompareTo(version) >= 0)

Powered by Google App Engine
This is Rietveld 408576698