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

Unified Diff: chrome/browser/android/ntp/bookmark_suggestions_provider_factory.h

Issue 2190583002: Add bookmark provider for content suggestions (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Comments #2 Created 4 years, 5 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/android/ntp/bookmark_suggestions_provider_factory.h
diff --git a/chrome/browser/android/ntp/offline_page_suggestions_provider_factory.h b/chrome/browser/android/ntp/bookmark_suggestions_provider_factory.h
similarity index 51%
copy from chrome/browser/android/ntp/offline_page_suggestions_provider_factory.h
copy to chrome/browser/android/ntp/bookmark_suggestions_provider_factory.h
index f6fc527f9c8b16dcf6b9302db12c577cfb1dca92..cfc419e4b333206d18f7289f42deaca5bb09097e 100644
--- a/chrome/browser/android/ntp/offline_page_suggestions_provider_factory.h
+++ b/chrome/browser/android/ntp/bookmark_suggestions_provider_factory.h
@@ -2,8 +2,8 @@
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
-#ifndef CHROME_BROWSER_ANDROID_NTP_OFFLINE_PAGE_SUGGESTIONS_PROVIDER_FACTORY_H_
-#define CHROME_BROWSER_ANDROID_NTP_OFFLINE_PAGE_SUGGESTIONS_PROVIDER_FACTORY_H_
+#ifndef CHROME_BROWSER_ANDROID_NTP_BOOKMARK_SUGGESTIONS_PROVIDER_FACTORY_H_
+#define CHROME_BROWSER_ANDROID_NTP_BOOKMARK_SUGGESTIONS_PROVIDER_FACTORY_H_
#include <memory>
@@ -18,29 +18,28 @@ struct DefaultSingletonTraits;
} // namespace base
namespace ntp_snippets {
-class ContentSuggestionsService;
-class OfflinePageSuggestionsProvider;
+class BookmarkSuggestionsProvider;
} // namespace ntp_snippets
-class OfflinePageSuggestionsProviderFactory
+class BookmarkSuggestionsProviderFactory
: public BrowserContextKeyedServiceFactory {
public:
- static OfflinePageSuggestionsProviderFactory* GetInstance();
- static ntp_snippets::OfflinePageSuggestionsProvider* GetForProfile(
+ static BookmarkSuggestionsProviderFactory* GetInstance();
+ static ntp_snippets::BookmarkSuggestionsProvider* GetForProfile(
Profile* profile);
private:
friend struct base::DefaultSingletonTraits<
- OfflinePageSuggestionsProviderFactory>;
+ BookmarkSuggestionsProviderFactory>;
- OfflinePageSuggestionsProviderFactory();
- ~OfflinePageSuggestionsProviderFactory() override;
+ BookmarkSuggestionsProviderFactory();
+ ~BookmarkSuggestionsProviderFactory() override;
// BrowserContextKeyedServiceFactory implementation.
KeyedService* BuildServiceInstanceFor(
content::BrowserContext* context) const override;
- DISALLOW_COPY_AND_ASSIGN(OfflinePageSuggestionsProviderFactory);
+ DISALLOW_COPY_AND_ASSIGN(BookmarkSuggestionsProviderFactory);
};
-#endif // CHROME_BROWSER_ANDROID_NTP_OFFLINE_PAGE_SUGGESTIONS_PROVIDER_FACTORY_H_
+#endif // CHROME_BROWSER_ANDROID_NTP_BOOKMARK_SUGGESTIONS_PROVIDER_FACTORY_H_
« no previous file with comments | « chrome/browser/android/chrome_feature_list.cc ('k') | chrome/browser/android/ntp/bookmark_suggestions_provider_factory.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698