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

Unified Diff: chrome/browser/profiles/profile_impl.cc

Issue 10701043: Make ShortcutsBackend a ProfileKeyedService. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src/
Patch Set: Created 8 years, 6 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/profiles/profile_impl.h ('k') | chrome/chrome_browser.gypi » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/browser/profiles/profile_impl.cc
===================================================================
--- chrome/browser/profiles/profile_impl.cc (revision 145147)
+++ chrome/browser/profiles/profile_impl.cc (working copy)
@@ -795,16 +795,6 @@
return HistoryServiceFactory::GetForProfileIfExists(this).get();
}
-history::ShortcutsBackend* ProfileImpl::GetShortcutsBackend() {
- // This is called on one thread only - UI, so no magic is needed to protect
- // against the multiple concurrent calls.
- if (!shortcuts_backend_.get()) {
- shortcuts_backend_ = new history::ShortcutsBackend(GetPath(), this);
- CHECK(shortcuts_backend_->Init());
- }
- return shortcuts_backend_.get();
-}
-
DownloadManagerDelegate* ProfileImpl::GetDownloadManagerDelegate() {
return DownloadServiceFactory::GetForProfile(this)->
GetDownloadManagerDelegate();
« no previous file with comments | « chrome/browser/profiles/profile_impl.h ('k') | chrome/chrome_browser.gypi » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698