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

Side by Side Diff: chrome/browser/task_management/test_task_manager.cc

Issue 2146273002: TaskManager: when shown or activated, select the last active tab. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@triple_click_tm
Patch Set: Fix compile. Created 4 years, 4 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/test_task_manager.h" 5 #include "chrome/browser/task_management/test_task_manager.h"
6 6
7 namespace task_management { 7 namespace task_management {
8 8
9 TestTaskManager::TestTaskManager() 9 TestTaskManager::TestTaskManager()
10 : handle_(base::kNullProcessHandle), 10 : handle_(base::kNullProcessHandle),
(...skipping 143 matching lines...) Expand 10 before | Expand all | Expand 10 after
154 TaskId task_id) const { 154 TaskId task_id) const {
155 TaskIdList result; 155 TaskIdList result;
156 result.push_back(task_id); 156 result.push_back(task_id);
157 return result; 157 return result;
158 } 158 }
159 159
160 size_t TestTaskManager::GetNumberOfTasksOnSameProcess(TaskId task_id) const { 160 size_t TestTaskManager::GetNumberOfTasksOnSameProcess(TaskId task_id) const {
161 return 1; 161 return 1;
162 } 162 }
163 163
164 TaskId TestTaskManager::GetTaskIdForWebContents(
165 content::WebContents* web_contents) const {
166 return -1;
167 }
168
164 base::TimeDelta TestTaskManager::GetRefreshTime() { 169 base::TimeDelta TestTaskManager::GetRefreshTime() {
165 return GetCurrentRefreshTime(); 170 return GetCurrentRefreshTime();
166 } 171 }
167 172
168 int64_t TestTaskManager::GetEnabledFlags() { 173 int64_t TestTaskManager::GetEnabledFlags() {
169 return enabled_resources_flags(); 174 return enabled_resources_flags();
170 } 175 }
171 176
172 } // namespace task_management 177 } // namespace task_management
OLDNEW
« no previous file with comments | « chrome/browser/task_management/test_task_manager.h ('k') | chrome/browser/ui/task_manager/task_manager_table_model.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698