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

Side by Side Diff: chrome/browser/task_management/providers/web_contents/subframe_task.cc

Issue 2028753002: Make Task Manager sort more meaningful (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Fix unittest Created 4 years, 6 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 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/task_management/providers/web_contents/subframe_task.h" 5 #include "chrome/browser/task_management/providers/web_contents/subframe_task.h"
6 6
7 #include "base/strings/utf_string_conversions.h" 7 #include "base/strings/utf_string_conversions.h"
8 #include "chrome/grit/generated_resources.h" 8 #include "chrome/grit/generated_resources.h"
9 #include "content/public/browser/browser_context.h" 9 #include "content/public/browser/browser_context.h"
10 #include "content/public/browser/render_frame_host.h" 10 #include "content/public/browser/render_frame_host.h"
(...skipping 56 matching lines...) Expand 10 before | Expand all | Expand 10 after
67 void SubframeTask::UpdateTitle() { 67 void SubframeTask::UpdateTitle() {
68 // This will be called when the title changes on the WebContents's main frame, 68 // This will be called when the title changes on the WebContents's main frame,
69 // but this Task represents other frames, so we don't care. 69 // but this Task represents other frames, so we don't care.
70 } 70 }
71 71
72 void SubframeTask::UpdateFavicon() { 72 void SubframeTask::UpdateFavicon() {
73 // This will be called when the favicon changes on the WebContents's main 73 // This will be called when the favicon changes on the WebContents's main
74 // frame, but this Task represents other frames, so we don't care. 74 // frame, but this Task represents other frames, so we don't care.
75 } 75 }
76 76
77 Task* SubframeTask::GetParentTask() const {
78 return main_task_;
79 }
80
77 void SubframeTask::Activate() { 81 void SubframeTask::Activate() {
78 // Activate the root task. 82 // Activate the root task.
79 main_task_->Activate(); 83 main_task_->Activate();
80 } 84 }
81 85
82 } // namespace task_management 86 } // namespace task_management
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698