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

Side by Side Diff: chrome/browser/history/history.cc

Issue 9114020: Remove task.h and finish base::Bind() migration. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: fix typo Created 8 years, 11 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 | Annotate | Revision Log
« no previous file with comments | « chrome/browser/history/history.h ('k') | chrome/browser/history/history_extension_api.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright (c) 2011 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2011 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 // The history system runs on a background thread so that potentially slow 5 // The history system runs on a background thread so that potentially slow
6 // database operations don't delay the browser. This backend processing is 6 // database operations don't delay the browser. This backend processing is
7 // represented by HistoryBackend. The HistoryService's job is to dispatch to 7 // represented by HistoryBackend. The HistoryService's job is to dispatch to
8 // that thread. 8 // that thread.
9 // 9 //
10 // Main thread History thread 10 // Main thread History thread
(...skipping 11 matching lines...) Expand all
22 // -> SQLite connection to Thumbnails 22 // -> SQLite connection to Thumbnails
23 // (and favicons) 23 // (and favicons)
24 24
25 #include "chrome/browser/history/history.h" 25 #include "chrome/browser/history/history.h"
26 26
27 #include "base/callback.h" 27 #include "base/callback.h"
28 #include "base/memory/ref_counted.h" 28 #include "base/memory/ref_counted.h"
29 #include "base/message_loop.h" 29 #include "base/message_loop.h"
30 #include "base/path_service.h" 30 #include "base/path_service.h"
31 #include "base/string_util.h" 31 #include "base/string_util.h"
32 #include "base/task.h"
33 #include "base/threading/thread.h" 32 #include "base/threading/thread.h"
34 #include "chrome/browser/autocomplete/history_url_provider.h" 33 #include "chrome/browser/autocomplete/history_url_provider.h"
35 #include "chrome/browser/browser_process.h" 34 #include "chrome/browser/browser_process.h"
36 #include "chrome/browser/history/history_backend.h" 35 #include "chrome/browser/history/history_backend.h"
37 #include "chrome/browser/history/history_notifications.h" 36 #include "chrome/browser/history/history_notifications.h"
38 #include "chrome/browser/history/history_types.h" 37 #include "chrome/browser/history/history_types.h"
39 #include "chrome/browser/history/in_memory_database.h" 38 #include "chrome/browser/history/in_memory_database.h"
40 #include "chrome/browser/history/in_memory_history_backend.h" 39 #include "chrome/browser/history/in_memory_history_backend.h"
41 #include "chrome/browser/history/top_sites.h" 40 #include "chrome/browser/history/top_sites.h"
42 #include "chrome/browser/prefs/pref_service.h" 41 #include "chrome/browser/prefs/pref_service.h"
(...skipping 811 matching lines...) Expand 10 before | Expand all | Expand 10 after
854 history::TopSites* ts = profile_->GetTopSitesWithoutCreating(); 853 history::TopSites* ts = profile_->GetTopSitesWithoutCreating();
855 if (ts) 854 if (ts)
856 ts->MigrateFromHistory(); 855 ts->MigrateFromHistory();
857 } 856 }
858 } 857 }
859 858
860 void HistoryService::OnTopSitesReady() { 859 void HistoryService::OnTopSitesReady() {
861 ScheduleAndForget(PRIORITY_NORMAL, 860 ScheduleAndForget(PRIORITY_NORMAL,
862 &HistoryBackend::MigrateThumbnailsDatabase); 861 &HistoryBackend::MigrateThumbnailsDatabase);
863 } 862 }
OLDNEW
« no previous file with comments | « chrome/browser/history/history.h ('k') | chrome/browser/history/history_extension_api.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698