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

Side by Side Diff: chrome/browser/profiles/profile_impl.cc

Issue 7640021: Move some Chrome-specific code paths out of DownloadManager and into the delegate. Getting rid of... (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: '' Created 9 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 unified diff | Download patch | Annotate | Revision Log
« no previous file with comments | « chrome/browser/profiles/profile_impl.h ('k') | no next file » | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright (c) 2011 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2011 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 #include "chrome/browser/profiles/profile_impl.h" 5 #include "chrome/browser/profiles/profile_impl.h"
6 6
7 #include "base/command_line.h" 7 #include "base/command_line.h"
8 #include "base/compiler_specific.h" 8 #include "base/compiler_specific.h"
9 #include "base/environment.h" 9 #include "base/environment.h"
10 #include "base/file_path.h" 10 #include "base/file_path.h"
(...skipping 1235 matching lines...) Expand 10 before | Expand all | Expand 10 after
1246 1246
1247 if (!ps || !ps->Init()) { 1247 if (!ps || !ps->Init()) {
1248 NOTREACHED() << "Could not initialize password manager."; 1248 NOTREACHED() << "Could not initialize password manager.";
1249 return; 1249 return;
1250 } 1250 }
1251 password_store_.swap(ps); 1251 password_store_.swap(ps);
1252 } 1252 }
1253 1253
1254 DownloadManager* ProfileImpl::GetDownloadManager() { 1254 DownloadManager* ProfileImpl::GetDownloadManager() {
1255 if (!created_download_manager_) { 1255 if (!created_download_manager_) {
1256 download_manager_delegate_.reset(new ChromeDownloadManagerDelegate()); 1256 download_manager_delegate_= new ChromeDownloadManagerDelegate();
1257 scoped_refptr<DownloadManager> dlm( 1257 scoped_refptr<DownloadManager> dlm(
1258 new DownloadManager(download_manager_delegate_.get(), 1258 new DownloadManager(download_manager_delegate_,
1259 g_browser_process->download_status_updater())); 1259 g_browser_process->download_status_updater()));
1260 download_manager_delegate_->set_download_manager(dlm); 1260 download_manager_delegate_->set_download_manager(dlm);
1261 dlm->Init(this); 1261 dlm->Init(this);
1262 created_download_manager_ = true; 1262 created_download_manager_ = true;
1263 download_manager_.swap(dlm); 1263 download_manager_.swap(dlm);
1264 } 1264 }
1265 return download_manager_.get(); 1265 return download_manager_.get();
1266 } 1266 }
1267 1267
1268 bool ProfileImpl::HasCreatedDownloadManager() const { 1268 bool ProfileImpl::HasCreatedDownloadManager() const {
(...skipping 454 matching lines...) Expand 10 before | Expand all | Expand 10 after
1723 #endif 1723 #endif
1724 } 1724 }
1725 return prerender_manager_.get(); 1725 return prerender_manager_.get();
1726 } 1726 }
1727 1727
1728 SpellCheckProfile* ProfileImpl::GetSpellCheckProfile() { 1728 SpellCheckProfile* ProfileImpl::GetSpellCheckProfile() {
1729 if (!spellcheck_profile_.get()) 1729 if (!spellcheck_profile_.get())
1730 spellcheck_profile_.reset(new SpellCheckProfile()); 1730 spellcheck_profile_.reset(new SpellCheckProfile());
1731 return spellcheck_profile_.get(); 1731 return spellcheck_profile_.get();
1732 } 1732 }
OLDNEW
« no previous file with comments | « chrome/browser/profiles/profile_impl.h ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698