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

Side by Side Diff: chrome/browser/android/offline_pages/offline_page_model_factory.cc

Issue 1521193002: [Offline pages] Refactor URL conversions from TabAndroid (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Addressing CR feedback Created 5 years 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 unified diff | Download patch
OLDNEW
1 // Copyright 2015 The Chromium Authors. All rights reserved. 1 // Copyright 2015 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 #include "chrome/browser/android/offline_pages/offline_page_model_factory.h" 5 #include "chrome/browser/android/offline_pages/offline_page_model_factory.h"
6 6
7 #include "base/files/file_path.h" 7 #include "base/files/file_path.h"
8 #include "base/memory/singleton.h" 8 #include "base/memory/singleton.h"
9 #include "base/path_service.h" 9 #include "base/path_service.h"
10 #include "base/sequenced_task_runner.h" 10 #include "base/sequenced_task_runner.h"
11 #include "chrome/browser/profiles/incognito_helpers.h" 11 #include "chrome/browser/profiles/incognito_helpers.h"
12 #include "chrome/browser/profiles/profile.h" 12 #include "chrome/browser/profiles/profile.h"
13 #include "chrome/common/chrome_constants.h" 13 #include "chrome/common/chrome_constants.h"
14 #include "components/keyed_service/content/browser_context_dependency_manager.h" 14 #include "components/keyed_service/content/browser_context_dependency_manager.h"
15 #include "components/offline_pages/offline_page_metadata_store_impl.h" 15 #include "components/offline_pages/offline_page_metadata_store_impl.h"
16 #include "components/offline_pages/offline_page_model.h" 16 #include "components/offline_pages/offline_page_model.h"
17 #include "components/offline_pages/proto/offline_pages.pb.h" 17 #include "components/offline_pages/proto/offline_pages.pb.h"
18 #include "content/public/browser/browser_context.h"
dewittj 2015/12/15 18:30:31 I think since you aren't dereferencing a pointer y
fgorski 2015/12/16 21:43:16 Done.
18 #include "content/public/browser/browser_thread.h" 19 #include "content/public/browser/browser_thread.h"
19 20
20 namespace offline_pages { 21 namespace offline_pages {
21 22
22 OfflinePageModelFactory::OfflinePageModelFactory() 23 OfflinePageModelFactory::OfflinePageModelFactory()
23 : BrowserContextKeyedServiceFactory( 24 : BrowserContextKeyedServiceFactory(
24 "OfflinePageModel", 25 "OfflinePageModel",
25 BrowserContextDependencyManager::GetInstance()) { 26 BrowserContextDependencyManager::GetInstance()) {
26 } 27 }
27 28
(...skipping 28 matching lines...) Expand all
56 background_task_runner); 57 background_task_runner);
57 } 58 }
58 59
59 content::BrowserContext* OfflinePageModelFactory::GetBrowserContextToUse( 60 content::BrowserContext* OfflinePageModelFactory::GetBrowserContextToUse(
60 content::BrowserContext* context) const { 61 content::BrowserContext* context) const {
61 return chrome::GetBrowserContextRedirectedInIncognito(context); 62 return chrome::GetBrowserContextRedirectedInIncognito(context);
62 } 63 }
63 64
64 } // namespace offline_pages 65 } // namespace offline_pages
65 66
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698