| 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_
|
|
|