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

Unified Diff: chrome/browser/dom_ui/dom_ui_thumbnail_source.cc

Issue 3060024: Partially revert r53873 (and the valgrind suppression for it). (Closed) Base URL: http://src.chromium.org/git/chromium.git
Patch Set: Created 10 years, 5 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/dom_ui/dom_ui_thumbnail_source.cc
diff --git a/chrome/browser/dom_ui/dom_ui_thumbnail_source.cc b/chrome/browser/dom_ui/dom_ui_thumbnail_source.cc
index 6e18bd4a7f7c5af2b1a31a904955202e0f6fe66a..fd6eae7a6a032c90030e5a98fdeea332748705b9 100644
--- a/chrome/browser/dom_ui/dom_ui_thumbnail_source.cc
+++ b/chrome/browser/dom_ui/dom_ui_thumbnail_source.cc
@@ -23,13 +23,11 @@ DOMUIThumbnailSource::DOMUIThumbnailSource(Profile* profile)
}
DOMUIThumbnailSource::~DOMUIThumbnailSource() {
- DCHECK(ChromeThread::CurrentlyOn(ChromeThread::UI));
}
void DOMUIThumbnailSource::StartDataRequest(const std::string& path,
bool is_off_the_record,
int request_id) {
- DCHECK(ChromeThread::CurrentlyOn(ChromeThread::UI));
if (CommandLine::ForCurrentProcess()->HasSwitch(switches::kTopSites)) {
scoped_refptr<history::TopSites> top_sites = profile_->GetTopSites();
RefCountedBytes* data = NULL;
@@ -75,7 +73,6 @@ void DOMUIThumbnailSource::SendDefaultThumbnail(int request_id) {
void DOMUIThumbnailSource::OnThumbnailDataAvailable(
HistoryService::Handle request_handle,
scoped_refptr<RefCountedBytes> data) {
- DCHECK(ChromeThread::CurrentlyOn(ChromeThread::UI));
HistoryService* hs =
profile_->GetHistoryService(Profile::EXPLICIT_ACCESS);
int request_id = cancelable_consumer_.GetClientData(hs, request_handle);

Powered by Google App Engine
This is Rietveld 408576698