Chromium Code Reviews| Index: components/dom_distiller/core/dom_distiller_service.cc |
| diff --git a/components/dom_distiller/core/dom_distiller_service.cc b/components/dom_distiller/core/dom_distiller_service.cc |
| index 47d4f06d62986afcde2b3d376989f3a1380f3fc8..688789d3dae640d323e7a05b3b1835f218ab373d 100644 |
| --- a/components/dom_distiller/core/dom_distiller_service.cc |
| +++ b/components/dom_distiller/core/dom_distiller_service.cc |
| @@ -189,6 +189,14 @@ scoped_ptr<ViewerHandle> DomDistillerService::ViewUrl( |
| return viewer_handle; |
| } |
| +scoped_ptr<ViewerHandle> DomDistillerService::AddViewRequestDelegate( |
| + ViewRequestDelegate* delegate, |
| + const GURL& url) { |
| + TaskTracker* task_tracker = nullptr; |
| + GetOrCreateTaskTrackerForUrl(url, &task_tracker); |
|
nyquist
2016/01/20 16:59:08
If this returns true, doesn't that mean that there
mvendramini_hp
2016/01/21 16:54:46
Yes, you are right - in hindsight, that was not a
nyquist
2016/01/22 02:23:29
Yeah; I think GetTaskTrackerForUrl makes more sens
mvendramini_hp
2016/01/22 12:22:31
Done, adapted the code to not modify DomDistillerS
|
| + return task_tracker->AddViewer(delegate); |
| +} |
| + |
| bool DomDistillerService::GetOrCreateTaskTrackerForUrl( |
| const GURL& url, |
| TaskTracker** task_tracker) { |