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

Unified Diff: chrome/browser/win/jumplist_factory.h

Issue 2937993002: Revert of Fix stability and data racing issues, coalesce more updates for JumpList (Closed)
Patch Set: Created 3 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/win/jumplist.cc ('k') | chrome/browser/win/jumplist_factory.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/browser/win/jumplist_factory.h
diff --git a/chrome/browser/win/jumplist_factory.h b/chrome/browser/win/jumplist_factory.h
index 7155c807868b9bc3bf4ec0b6ac14dbb6ff89f7e0..5f8c1c80180dc5fdf67eebf8ddd68570879ac593 100644
--- a/chrome/browser/win/jumplist_factory.h
+++ b/chrome/browser/win/jumplist_factory.h
@@ -6,14 +6,12 @@
#define CHROME_BROWSER_WIN_JUMPLIST_FACTORY_H_
#include "base/memory/singleton.h"
-#include "components/keyed_service/content/browser_context_keyed_service_factory.h"
+#include "chrome/browser/win/jumplist.h"
+#include "components/keyed_service/content/refcounted_browser_context_keyed_service_factory.h"
-class Profile;
-class JumpList;
-
-class JumpListFactory : public BrowserContextKeyedServiceFactory {
+class JumpListFactory : public RefcountedBrowserContextKeyedServiceFactory {
public:
- static JumpList* GetForProfile(Profile* profile);
+ static scoped_refptr<JumpList> GetForProfile(Profile* profile);
static JumpListFactory* GetInstance();
@@ -23,7 +21,7 @@
~JumpListFactory() override;
// BrowserContextKeyedServiceFactory:
- KeyedService* BuildServiceInstanceFor(
+ scoped_refptr<RefcountedKeyedService> BuildServiceInstanceFor(
content::BrowserContext* context) const override;
};
« no previous file with comments | « chrome/browser/win/jumplist.cc ('k') | chrome/browser/win/jumplist_factory.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698