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

Side by Side Diff: chrome/browser/history/shortcuts_backend.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 unified diff | Download patch
OLDNEW
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2012 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 #include "chrome/browser/history/shortcuts_backend.h" 5 #include "chrome/browser/history/shortcuts_backend.h"
6 6
7 #include <map> 7 #include <map>
8 #include <string> 8 #include <string>
9 #include <vector> 9 #include <vector>
10 10
(...skipping 248 matching lines...) Expand 10 before | Expand all | Expand 10 after
259 it->second.number_of_hits + 1)); 259 it->second.number_of_hits + 1));
260 return; 260 return;
261 } 261 }
262 } 262 }
263 AddShortcut(Shortcut(base::GenerateGUID(), log->text, match.destination_url, 263 AddShortcut(Shortcut(base::GenerateGUID(), log->text, match.destination_url,
264 match.contents, match.contents_class, match.description, 264 match.contents, match.contents_class, match.description,
265 match.description_class, base::Time::Now(), 1)); 265 match.description_class, base::Time::Now(), 1));
266 } 266 }
267 267
268 void ShortcutsBackend::ShutdownOnUIThread() { 268 void ShortcutsBackend::ShutdownOnUIThread() {
269 DCHECK(!BrowserThread::IsWellKnownThread(BrowserThread::UI) || 269 DCHECK(!BrowserThread::IsThreadInitialized(BrowserThread::UI) ||
270 BrowserThread::CurrentlyOn(BrowserThread::UI)); 270 BrowserThread::CurrentlyOn(BrowserThread::UI));
271 notification_registrar_.RemoveAll(); 271 notification_registrar_.RemoveAll();
272 } 272 }
273 273
274 } // namespace history 274 } // namespace history
OLDNEW
« no previous file with comments | « chrome/browser/history/scored_history_match.cc ('k') | chrome/browser/policy/browser_policy_connector.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698