summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authoranujk.sharma <anujk.sharma@samsung.com>2015-04-20 19:59:29 -0700
committerCommit bot <commit-bot@chromium.org>2015-04-21 02:59:36 +0000
commitc2a1922419f12248bf72a1ea744e66ced39b4cd5 (patch)
treebf11c659dc7ff89abdf1ce492a8d2dda1ea073e3
parent503cd360ea98d90f5726913ac10344648529c942 (diff)
downloadchromium_src-c2a1922419f12248bf72a1ea744e66ced39b4cd5.zip
chromium_src-c2a1922419f12248bf72a1ea744e66ced39b4cd5.tar.gz
chromium_src-c2a1922419f12248bf72a1ea744e66ced39b4cd5.tar.bz2
favor DCHECK_CURRENTLY_ON for better logs in left out content/
BUG=466848 Review URL: https://codereview.chromium.org/1081413004 Cr-Commit-Position: refs/heads/master@{#325972}
-rw-r--r--content/browser/histogram_message_filter.cc2
-rw-r--r--content/browser/indexed_db/indexed_db_backing_store.cc2
-rw-r--r--content/browser/theme_helper_mac.mm2
3 files changed, 3 insertions, 3 deletions
diff --git a/content/browser/histogram_message_filter.cc b/content/browser/histogram_message_filter.cc
index 8eb7c72..a93a309 100644
--- a/content/browser/histogram_message_filter.cc
+++ b/content/browser/histogram_message_filter.cc
@@ -41,7 +41,7 @@ void HistogramMessageFilter::OnChildHistogramData(
void HistogramMessageFilter::OnGetBrowserHistogram(
const std::string& name,
std::string* histogram_json) {
- DCHECK(content::BrowserThread::CurrentlyOn(content::BrowserThread::IO));
+ DCHECK_CURRENTLY_ON(content::BrowserThread::IO);
// Security: Only allow access to browser histograms when running in the
// context of a test.
bool using_stats_collection_controller =
diff --git a/content/browser/indexed_db/indexed_db_backing_store.cc b/content/browser/indexed_db/indexed_db_backing_store.cc
index 0db7b61..e7107c5 100644
--- a/content/browser/indexed_db/indexed_db_backing_store.cc
+++ b/content/browser/indexed_db/indexed_db_backing_store.cc
@@ -2362,7 +2362,7 @@ class LocalWriteClosure : public FileWriterDelegate::DelegateWriteCallback,
const GURL& blob_url,
const base::Time& last_modified,
net::URLRequestContext* request_context) {
- DCHECK(content::BrowserThread::CurrentlyOn(content::BrowserThread::IO));
+ DCHECK_CURRENTLY_ON(content::BrowserThread::IO);
scoped_ptr<storage::FileStreamWriter> writer(
storage::FileStreamWriter::CreateForLocalFile(
task_runner_.get(),
diff --git a/content/browser/theme_helper_mac.mm b/content/browser/theme_helper_mac.mm
index 3103a5c..2919060 100644
--- a/content/browser/theme_helper_mac.mm
+++ b/content/browser/theme_helper_mac.mm
@@ -72,7 +72,7 @@ suspensionBehavior:NSNotificationSuspensionBehaviorCoalesce];
}
+ (void)notifyPrefsChangedWithRedraw:(BOOL)redraw {
- DCHECK(content::BrowserThread::CurrentlyOn(content::BrowserThread::UI));
+ DCHECK_CURRENTLY_ON(content::BrowserThread::UI);
NSUserDefaults* defaults = [NSUserDefaults standardUserDefaults];
[defaults synchronize];