Popular sites on the NTP: check that experiment group StartsWith (rather than IS...
[chromium-blink-merge.git] / chrome / browser / task_management / providers / web_contents / devtools_task.cc
blobf0da9f4dbde9781e353392df4df31e76cb6f3387
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
3 // found in the LICENSE file.
5 #include "chrome/browser/task_management/providers/web_contents/devtools_task.h"
7 #include "content/public/browser/web_contents.h"
9 namespace task_management {
11 DevToolsTask::DevToolsTask(content::WebContents* web_contents)
12 : RendererTask(RendererTask::GetTitleFromWebContents(web_contents),
13 RendererTask::GetFaviconFromWebContents(web_contents),
14 web_contents,
15 web_contents->GetRenderProcessHost()) {
18 DevToolsTask::~DevToolsTask() {
21 // task_management::RendererTask:
22 void DevToolsTask::OnTitleChanged(content::NavigationEntry* entry) {
23 // In the case of a devtools tab, this won't happen so we ignore it.
24 // TODO(afakhry): Confirm that it doesn't happen in practice.
25 NOTREACHED();
28 void DevToolsTask::OnFaviconChanged() {
29 // In the case of a devtools tab, this won't happen so we ignore it.
30 // TODO(afakhry): Confirm that it doesn't happen in practice.
31 NOTREACHED();
34 } // namespace task_management