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

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

Issue 1956633002: Menu hook plumbed through to RequestCoordinator. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Remove reference to unit test which I forgot to include Created 4 years, 7 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 unified diff | Download patch
OLDNEW
1 // Copyright 2016 The Chromium Authors. All rights reserved. 1 // Copyright 2016 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/request_coordinator_factory.h" 5 #include "chrome/browser/android/offline_pages/request_coordinator_factory.h"
6 6
7 #include <memory> 7 #include <memory>
8 8
9 #include "base/memory/singleton.h" 9 #include "base/memory/singleton.h"
10 #include "chrome/browser/android/offline_pages/prerendering_offliner_factory.h" 10 #include "chrome/browser/android/offline_pages/prerendering_offliner_factory.h"
(...skipping 27 matching lines...) Expand all
38 std::unique_ptr<OfflinerFactory> prerendererOffliner( 38 std::unique_ptr<OfflinerFactory> prerendererOffliner(
39 new PrerenderingOfflinerFactory(context)); 39 new PrerenderingOfflinerFactory(context));
40 // TODO(petewil) Add support for server based offliner when it is ready. 40 // TODO(petewil) Add support for server based offliner when it is ready.
41 41
42 return new RequestCoordinator(std::move(policy), 42 return new RequestCoordinator(std::move(policy),
43 std::move(prerendererOffliner)); 43 std::move(prerendererOffliner));
44 } 44 }
45 45
46 content::BrowserContext* RequestCoordinatorFactory::GetBrowserContextToUse( 46 content::BrowserContext* RequestCoordinatorFactory::GetBrowserContextToUse(
47 content::BrowserContext* context) const { 47 content::BrowserContext* context) const {
48 // TODO(petewil): Implement. 48 // TODO(petewil): Make sure we support incognito properly.
49 return nullptr; 49 return context;
50 } 50 }
51 51
52 } // namespace offline_pages 52 } // namespace offline_pages
OLDNEW
« no previous file with comments | « chrome/browser/android/offline_pages/offline_page_bridge.cc ('k') | components/offline_pages/background/request_coordinator.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698