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

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

Issue 8091002: PART2: Make SignedSettings use proper Value types instead of string all around the place. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Rebased on ToT and made clang happy. Created 9 years, 2 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/profiles/profile_impl.cc
diff --git a/chrome/browser/profiles/profile_impl.cc b/chrome/browser/profiles/profile_impl.cc
index 72fa56efac5b7878379d4bcda27d80c00f4f6828..851022756648df3bd84c966399f91b2c19c63914 100644
--- a/chrome/browser/profiles/profile_impl.cc
+++ b/chrome/browser/profiles/profile_impl.cc
@@ -220,47 +220,6 @@ FilePath GetMediaCachePath(const FilePath& base) {
return base.Append(chrome::kMediaCacheDirname);
}
Mattias Nissler (ping if slow) 2011/10/07 11:02:57 unrelated?
pastarmovj 2011/10/13 11:25:06 Yes. Cleared.
-void DoInstallDefaultAppsOnUIThread(const FilePath& profile_path,
- const std::list<FilePath>& crx_path_list) {
- Profile* profile =
- g_browser_process->profile_manager()->GetProfileByPath(profile_path);
- if (profile) {
- ExtensionService* extension_service = profile->GetExtensionService();
- for (std::list<FilePath>::const_iterator iter = crx_path_list.begin();
- iter != crx_path_list.end(); ++iter) {
- scoped_refptr<CrxInstaller> crx_installer =
- extension_service->MakeCrxInstaller(NULL);
- crx_installer->set_allow_silent_install(true);
- crx_installer->set_delete_source(false);
- crx_installer->set_install_cause(extension_misc::INSTALL_CAUSE_UPDATE);
- crx_installer->InstallCrx(*iter);
- }
- }
-}
-
-void InstallDefaultApps(const FilePath& profile_path) {
- FilePath apps_dir;
- FilePath file;
- std::list<FilePath> crx_path_list;
-
- if (PathService::Get(chrome::DIR_DEFAULT_APPS, &apps_dir)) {
- file_util::FileEnumerator file_enumerator(apps_dir, false,
- file_util::FileEnumerator::FILES);
- while (!(file = file_enumerator.Next()).value().empty()) {
- if (LowerCaseEqualsASCII(file.Extension(), ".crx"))
- crx_path_list.push_back(file);
- }
- }
- // No need to post the task if nothing was there to install.
- if (!crx_path_list.size())
- return;
-
- // Finish the install on the UI thread.
- BrowserThread::PostTask(BrowserThread::UI, FROM_HERE,
- base::Bind(&DoInstallDefaultAppsOnUIThread,
- profile_path, crx_path_list));
-}
-
// Simple task to log the size of the current profile.
class ProfileSizeTask : public Task {
public:

Powered by Google App Engine
This is Rietveld 408576698