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

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

Issue 10909030: Revert 154450 - Reliably install default apps into new installations. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src/
Patch Set: Created 8 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
« no previous file with comments | « no previous file | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/browser/extensions/default_apps.cc
===================================================================
--- chrome/browser/extensions/default_apps.cc (revision 154451)
+++ chrome/browser/extensions/default_apps.cc (working copy)
@@ -75,14 +75,10 @@
switch (state) {
case kUnknown: {
- // 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).
+ // This is the first time the default apps feature runs on this profile.
+ // Determine if we want to install them or not.
chrome::VersionInfo version_info;
- bool is_new_profile =
- profile_->WasCreatedByVersionOrLater(version_info.Version().c_str());
- bool is_first_run = first_run::IsChromeFirstRun();
- if (!is_first_run && !is_new_profile)
+ if (!profile_->WasCreatedByVersionOrLater(version_info.Version().c_str()))
install_apps = false;
break;
}
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698