OLD | NEW |
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 Loading... |
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 |
OLD | NEW |