| 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();
|
|
|