summaryrefslogtreecommitdiffstats
path: root/chrome/browser/dom_ui/history_ui.cc
diff options
context:
space:
mode:
authorjamesr@chromium.org <jamesr@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2009-11-20 23:14:23 +0000
committerjamesr@chromium.org <jamesr@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2009-11-20 23:14:23 +0000
commitf8f8250237f535750e0d8269d2762f52db090e45 (patch)
tree1cdf3da8041969b9b0ac8c045ca2bf458256ca66 /chrome/browser/dom_ui/history_ui.cc
parentc1dc9f130ed8792c3e821f486d3c5e1ed4e567f3 (diff)
downloadchromium_src-f8f8250237f535750e0d8269d2762f52db090e45.zip
chromium_src-f8f8250237f535750e0d8269d2762f52db090e45.tar.gz
chromium_src-f8f8250237f535750e0d8269d2762f52db090e45.tar.bz2
Forces T*s to scoped_refptr<T> when PostTask()ing to a function expecting scoped_refptr<T>
Review URL: http://codereview.chromium.org/418007 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@32706 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'chrome/browser/dom_ui/history_ui.cc')
-rw-r--r--chrome/browser/dom_ui/history_ui.cc4
1 files changed, 2 insertions, 2 deletions
diff --git a/chrome/browser/dom_ui/history_ui.cc b/chrome/browser/dom_ui/history_ui.cc
index dce9cdb..a97992b 100644
--- a/chrome/browser/dom_ui/history_ui.cc
+++ b/chrome/browser/dom_ui/history_ui.cc
@@ -116,7 +116,7 @@ DOMMessageHandler* BrowsingHistoryHandler::Attach(DOMUI* dom_ui) {
NewRunnableMethod(
Singleton<ChromeURLDataManager>::get(),
&ChromeURLDataManager::AddDataSource,
- new DOMUIFavIconSource(dom_ui->GetProfile())));
+ make_scoped_refptr(new DOMUIFavIconSource(dom_ui->GetProfile()))));
// Get notifications when history is cleared.
registrar_.Add(this, NotificationType::HISTORY_URLS_DELETED,
@@ -371,7 +371,7 @@ HistoryUI::HistoryUI(TabContents* contents) : DOMUI(contents) {
NewRunnableMethod(
Singleton<ChromeURLDataManager>::get(),
&ChromeURLDataManager::AddDataSource,
- html_source));
+ make_scoped_refptr(html_source)));
}
// static