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

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

Issue 2931573003: Fix stability and data racing issues, coalesce more updates for JumpList (Closed)
Patch Set: Remove refcounting for jumplist KeyedService, fix nits. 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
Index: chrome/browser/win/jumplist_factory.h
diff --git a/chrome/browser/win/jumplist_factory.h b/chrome/browser/win/jumplist_factory.h
index 5f8c1c80180dc5fdf67eebf8ddd68570879ac593..2d61dd60a5f61850a6529b2cc63caa181a506ef4 100644
--- a/chrome/browser/win/jumplist_factory.h
+++ b/chrome/browser/win/jumplist_factory.h
@@ -7,11 +7,11 @@
#include "base/memory/singleton.h"
#include "chrome/browser/win/jumplist.h"
grt (UTC plus 2) 2017/06/12 20:43:39 nit: could this be moved to the .cc file in favor
chengx 2017/06/12 22:05:30 I don't think so. The return type of GetForProfile
grt (UTC plus 2) 2017/06/13 07:32:27 A forward decl is fine in that case -- consumers o
chengx 2017/06/13 19:16:01 Done. You are right. I only need to tell the heade
-#include "components/keyed_service/content/refcounted_browser_context_keyed_service_factory.h"
+#include "components/keyed_service/content/browser_context_keyed_service_factory.h"
-class JumpListFactory : public RefcountedBrowserContextKeyedServiceFactory {
+class JumpListFactory : public BrowserContextKeyedServiceFactory {
public:
- static scoped_refptr<JumpList> GetForProfile(Profile* profile);
+ static JumpList* GetForProfile(Profile* profile);
static JumpListFactory* GetInstance();
@@ -21,7 +21,7 @@ class JumpListFactory : public RefcountedBrowserContextKeyedServiceFactory {
~JumpListFactory() override;
// BrowserContextKeyedServiceFactory:
- scoped_refptr<RefcountedKeyedService> BuildServiceInstanceFor(
+ KeyedService* BuildServiceInstanceFor(
content::BrowserContext* context) const override;
};

Powered by Google App Engine
This is Rietveld 408576698