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

Unified Diff: chrome/browser/history/scored_history_match.cc

Issue 22031003: Rename BrowserThread::IsWellKnownThread to IsThreadInitialized. (Closed) Base URL: http://git.chromium.org/chromium/src.git@master
Patch Set: Minor comment reword. Created 7 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « chrome/browser/google/google_util_chromeos.cc ('k') | chrome/browser/history/shortcuts_backend.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/browser/history/scored_history_match.cc
diff --git a/chrome/browser/history/scored_history_match.cc b/chrome/browser/history/scored_history_match.cc
index 3563a9d8a0fe58b95a7e2aeaec7e3428fff96ffe..3fb8e770fad1e5a65cb162eb0c158457f6d43349 100644
--- a/chrome/browser/history/scored_history_match.cc
+++ b/chrome/browser/history/scored_history_match.cc
@@ -256,9 +256,9 @@ float ScoredHistoryMatch::GetTopicalityScore(
// be on it." The first part is necessary so unit tests pass. (Many
// unit tests don't set up the threading naming system; hence
// CurrentlyOn(UI thread) will fail.)
- DCHECK(
- !content::BrowserThread::IsWellKnownThread(content::BrowserThread::UI) ||
- content::BrowserThread::CurrentlyOn(content::BrowserThread::UI));
+ DCHECK(!content::BrowserThread::IsThreadInitialized(
+ content::BrowserThread::UI) ||
+ content::BrowserThread::CurrentlyOn(content::BrowserThread::UI));
if (raw_term_score_to_topicality_score == NULL) {
raw_term_score_to_topicality_score = new float[kMaxRawTermScore];
FillInTermScoreToTopicalityScoreArray();
@@ -400,9 +400,9 @@ float ScoredHistoryMatch::GetRecencyScore(int last_visit_days_ago) {
// be on it." The first part is necessary so unit tests pass. (Many
// unit tests don't set up the threading naming system; hence
// CurrentlyOn(UI thread) will fail.)
- DCHECK(
- !content::BrowserThread::IsWellKnownThread(content::BrowserThread::UI) ||
- content::BrowserThread::CurrentlyOn(content::BrowserThread::UI));
+ DCHECK(!content::BrowserThread::IsThreadInitialized(
+ content::BrowserThread::UI) ||
+ content::BrowserThread::CurrentlyOn(content::BrowserThread::UI));
if (days_ago_to_recency_score == NULL) {
days_ago_to_recency_score = new float[kDaysToPrecomputeRecencyScoresFor];
FillInDaysAgoToRecencyScoreArray();
« no previous file with comments | « chrome/browser/google/google_util_chromeos.cc ('k') | chrome/browser/history/shortcuts_backend.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698