summaryrefslogtreecommitdiffstats
path: root/chrome/browser/printing
diff options
context:
space:
mode:
authorsky@chromium.org <sky@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2011-02-09 21:59:32 +0000
committersky@chromium.org <sky@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2011-02-09 21:59:32 +0000
commitf37bff408d28bb87f74ebb1907cb4727ae22329e (patch)
tree38d35c642704dfa79b6e0b2fc1abbc28570a4b33 /chrome/browser/printing
parent4f61e0e76ac6a0fb034cfd0973d06e5216ada7fc (diff)
downloadchromium_src-f37bff408d28bb87f74ebb1907cb4727ae22329e.zip
chromium_src-f37bff408d28bb87f74ebb1907cb4727ae22329e.tar.gz
chromium_src-f37bff408d28bb87f74ebb1907cb4727ae22329e.tar.bz2
Attempt 2 at: Splits ChromeURLDataManager into 2 chunks:
. ChromeURLDataManager is no longer a singleton and is always used on the UI thread. ChromeURLDataManager is now profile specific (you get from the profile). . ChromeURLDataManagerBackend handles the URLRequests and the DataSources. ChromeURLDataManagerBackend is created by ChromeURLRequestContext. All DataSources are now profile specific. There were two that wanted to be global, but have been converted. This differs from the version I landed in that there is now a NULL check in ChromeURLDataManager::DeleteDataSources. BUG=52022 71868 TEST=none TBR=willchan, evan, ahendrickson Review URL: http://codereview.chromium.org/6462036 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@74340 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'chrome/browser/printing')
-rw-r--r--chrome/browser/printing/cloud_print/cloud_print_setup_flow.cc7
1 files changed, 2 insertions, 5 deletions
diff --git a/chrome/browser/printing/cloud_print/cloud_print_setup_flow.cc b/chrome/browser/printing/cloud_print/cloud_print_setup_flow.cc
index 52e4739..0e2f79d 100644
--- a/chrome/browser/printing/cloud_print/cloud_print_setup_flow.cc
+++ b/chrome/browser/printing/cloud_print/cloud_print_setup_flow.cc
@@ -88,11 +88,8 @@ CloudPrintSetupFlow::CloudPrintSetupFlow(const std::string& args,
delegate_(delegate) {
// TODO(hclam): The data source should be added once.
profile_ = profile;
- BrowserThread::PostTask(
- BrowserThread::IO, FROM_HERE,
- NewRunnableMethod(ChromeURLDataManager::GetInstance(),
- &ChromeURLDataManager::AddDataSource,
- make_scoped_refptr(new CloudPrintSetupSource())));
+ profile->GetChromeURLDataManager()->AddDataSource(
+ new CloudPrintSetupSource());
}
CloudPrintSetupFlow::~CloudPrintSetupFlow() {