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

Unified Diff: chrome/browser/task_manager/task_manager_resource_providers.cc

Issue 12398007: Replaced deprecated v8 API calls by their non-deprecated counterparts. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 7 years, 10 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « no previous file | chrome/renderer/chrome_render_process_observer.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/browser/task_manager/task_manager_resource_providers.cc
diff --git a/chrome/browser/task_manager/task_manager_resource_providers.cc b/chrome/browser/task_manager/task_manager_resource_providers.cc
index 89c193a1e4b4fd966b46649e1a382d1b3e5a6c57..e1eca2f1fa818a4304b3abb7263619c9bd7b1546 100644
--- a/chrome/browser/task_manager/task_manager_resource_providers.cc
+++ b/chrome/browser/task_manager/task_manager_resource_providers.cc
@@ -61,6 +61,7 @@
#include "extensions/common/constants.h"
#include "grit/generated_resources.h"
#include "grit/theme_resources.h"
+#include "net/proxy/proxy_resolver_v8.h"
#include "third_party/sqlite/sqlite3.h"
#include "ui/base/l10n/l10n_util.h"
#include "ui/base/resource/resource_bundle.h"
@@ -1687,15 +1688,11 @@ bool TaskManagerBrowserProcessResource::ReportsV8MemoryStats() const {
}
size_t TaskManagerBrowserProcessResource::GetV8MemoryAllocated() const {
- v8::HeapStatistics stats;
- v8::V8::GetHeapStatistics(&stats);
- return stats.total_heap_size();
+ return net::ProxyResolverV8::GetTotalHeapSize();
}
size_t TaskManagerBrowserProcessResource::GetV8MemoryUsed() const {
- v8::HeapStatistics stats;
- v8::V8::GetHeapStatistics(&stats);
- return stats.used_heap_size();
+ return net::ProxyResolverV8::GetUsedHeapSize();
}
////////////////////////////////////////////////////////////////////////////////
« no previous file with comments | « no previous file | chrome/renderer/chrome_render_process_observer.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698