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

Unified Diff: chrome/browser/extensions/default_apps.cc

Issue 1269773002: Cleanup VersionInfo after componentization. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Rebase Created 5 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 side-by-side diff with in-line comments
Download patch
Index: chrome/browser/extensions/default_apps.cc
diff --git a/chrome/browser/extensions/default_apps.cc b/chrome/browser/extensions/default_apps.cc
index 2cc32289435e48d1243285e0de259e8ff594ec24..64e260f96ac3c66a0708a75c9d9ddcd6b7e377d9 100644
--- a/chrome/browser/extensions/default_apps.cc
+++ b/chrome/browser/extensions/default_apps.cc
@@ -14,10 +14,10 @@
#include "chrome/browser/first_run/first_run.h"
#include "chrome/browser/profiles/profile.h"
#include "chrome/common/chrome_switches.h"
-#include "chrome/common/chrome_version_info.h"
#include "chrome/common/extensions/extension_constants.h"
#include "chrome/common/pref_names.h"
#include "components/pref_registry/pref_registry_syncable.h"
+#include "components/version_info/version_info.h"
#include "extensions/common/extension.h"
namespace {
@@ -76,9 +76,8 @@ bool Provider::ShouldInstallInProfile() {
// Only new installations and profiles get default apps. In theory the
// new profile checks should catch new installations, but that is not
// always the case (http:/crbug.com/145351).
- chrome::VersionInfo version_info;
- bool is_new_profile =
- profile_->WasCreatedByVersionOrLater(version_info.Version().c_str());
+ bool is_new_profile = profile_->WasCreatedByVersionOrLater(
+ version_info::GetVersionNumber());
bool is_first_run = first_run::IsChromeFirstRun();
if (!is_first_run && !is_new_profile)
install_apps = false;
« no previous file with comments | « chrome/browser/extensions/component_loader.cc ('k') | chrome/browser/extensions/error_console/error_console.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698