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

Side by Side Diff: chrome/browser/task_manager/task_manager_browsertest_util.cc

Issue 972083002: Report utility process JS memory in task manager. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@v8-pac-oop
Patch Set: Try to fix build... again. Created 5 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 (c) 2012 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2012 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_manager/task_manager_browsertest_util.h" 5 #include "chrome/browser/task_manager/task_manager_browsertest_util.h"
6 6
7 #include "base/message_loop/message_loop.h" 7 #include "base/message_loop/message_loop.h"
8 #include "base/run_loop.h" 8 #include "base/run_loop.h"
9 #include "base/strings/string16.h" 9 #include "base/strings/string16.h"
10 #include "base/strings/string_util.h" 10 #include "base/strings/string_util.h"
(...skipping 233 matching lines...) Expand 10 before | Expand all | Expand 10 after
244 244
245 base::string16 MatchSubframe(const char* title) { 245 base::string16 MatchSubframe(const char* title) {
246 return l10n_util::GetStringFUTF16(IDS_TASK_MANAGER_SUBFRAME_PREFIX, 246 return l10n_util::GetStringFUTF16(IDS_TASK_MANAGER_SUBFRAME_PREFIX,
247 base::ASCIIToUTF16(title)); 247 base::ASCIIToUTF16(title));
248 } 248 }
249 249
250 base::string16 MatchAnySubframe() { 250 base::string16 MatchAnySubframe() {
251 return MatchSubframe("*"); 251 return MatchSubframe("*");
252 } 252 }
253 253
254 base::string16 MatchUtility(const base::string16& title) {
255 return l10n_util::GetStringFUTF16(IDS_TASK_MANAGER_UTILITY_PREFIX, title);
256 }
257
258 base::string16 MatchAnyUtility() {
259 return MatchUtility(base::ASCIIToUTF16("*"));
260 }
261
254 } // namespace browsertest_util 262 } // namespace browsertest_util
255 } // namespace task_manager 263 } // namespace task_manager
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698