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

Unified Diff: chrome/browser/undo/bookmark_undo_service_factory.cc

Issue 1059523005: Remove dependency on //chrome from bookmark_undo_utils (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@tests
Patch Set: Created 5 years, 8 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/undo/bookmark_undo_service_factory.h ('k') | chrome/browser/undo/bookmark_undo_utils.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/browser/undo/bookmark_undo_service_factory.cc
diff --git a/chrome/browser/undo/bookmark_undo_service_factory.cc b/chrome/browser/undo/bookmark_undo_service_factory.cc
index 02fecaf24ce13c0d07b38df9445015c956cfe1cc..0f6cdc7ae07de4fc22bd64b63d9a29c693e4a1a8 100644
--- a/chrome/browser/undo/bookmark_undo_service_factory.cc
+++ b/chrome/browser/undo/bookmark_undo_service_factory.cc
@@ -16,6 +16,13 @@ BookmarkUndoService* BookmarkUndoServiceFactory::GetForProfile(
}
// static
+BookmarkUndoService* BookmarkUndoServiceFactory::GetForProfileIfExists(
+ Profile* profile) {
+ return static_cast<BookmarkUndoService*>(
+ GetInstance()->GetServiceForBrowserContext(profile, false));
+}
+
+// static
BookmarkUndoServiceFactory* BookmarkUndoServiceFactory::GetInstance() {
return Singleton<BookmarkUndoServiceFactory>::get();
}
« no previous file with comments | « chrome/browser/undo/bookmark_undo_service_factory.h ('k') | chrome/browser/undo/bookmark_undo_utils.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698