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

Unified Diff: chrome/browser/profiles/profile_impl.cc

Issue 6825052: Update the web store promo to be clearer and configurable at run-time. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Incorporate Aaron's feedback. Created 9 years, 8 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 | « chrome/browser/profiles/profile_impl.h ('k') | chrome/browser/resources/new_new_tab.html » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/browser/profiles/profile_impl.cc
diff --git a/chrome/browser/profiles/profile_impl.cc b/chrome/browser/profiles/profile_impl.cc
index 36c656c64e48475827d685bccfef9a3480dbeae1..5d95346ae0bfecd19dec022079f1c52497bb3234 100644
--- a/chrome/browser/profiles/profile_impl.cc
+++ b/chrome/browser/profiles/profile_impl.cc
@@ -25,7 +25,6 @@
#include "chrome/browser/custom_handlers/protocol_handler_registry.h"
#include "chrome/browser/defaults.h"
#include "chrome/browser/download/download_manager.h"
-#include "chrome/browser/extensions/default_apps.h"
#include "chrome/browser/extensions/extension_devtools_manager.h"
#include "chrome/browser/extensions/extension_error_reporter.h"
#include "chrome/browser/extensions/extension_event_router.h"
@@ -238,7 +237,6 @@ Profile* Profile::CreateProfile(const FilePath& path) {
void ProfileImpl::RegisterUserPrefs(PrefService* prefs) {
prefs->RegisterBooleanPref(prefs::kSavingBrowserHistoryDisabled, false);
prefs->RegisterBooleanPref(prefs::kClearSiteDataOnExit, false);
- DefaultApps::RegisterUserPrefs(prefs);
}
ProfileImpl::ProfileImpl(const FilePath& path)
@@ -387,7 +385,6 @@ void ProfileImpl::InitExtensions() {
RegisterComponentExtensions();
extensions_service_->Init();
- InstallDefaultApps();
// Load any extensions specified with --load-extension.
if (command_line->HasSwitch(switches::kLoadExtension)) {
@@ -485,22 +482,6 @@ void ProfileImpl::RegisterComponentExtensions() {
#endif
}
-void ProfileImpl::InstallDefaultApps() {
- ExtensionService* extension_service = GetExtensionService();
- DefaultApps* default_apps = extension_service->default_apps();
-
- if (!default_apps->ShouldInstallDefaultApps(extension_service->GetAppIds()))
- return;
-
- const ExtensionIdSet& app_ids = default_apps->default_apps();
- PendingExtensionManager* pending_extension_manager =
- extension_service->pending_extension_manager();
- for (ExtensionIdSet::const_iterator iter = app_ids.begin();
- iter != app_ids.end(); ++iter) {
- pending_extension_manager->AddFromDefaultAppList(*iter);
- }
-}
-
void ProfileImpl::InitPromoResources() {
if (promo_resource_service_)
return;
« no previous file with comments | « chrome/browser/profiles/profile_impl.h ('k') | chrome/browser/resources/new_new_tab.html » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698