summaryrefslogtreecommitdiffstats
path: root/chrome/browser/task_manager
diff options
context:
space:
mode:
authorsvenpanne@chromium.org <svenpanne@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2013-03-05 11:06:55 +0000
committersvenpanne@chromium.org <svenpanne@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2013-03-05 11:06:55 +0000
commit8f09c54fc78a4a8d5fa66f7da7b506c14edffa8c (patch)
tree964f7356dc0d16c23abb79c39b45bd91850cc3b3 /chrome/browser/task_manager
parent9cc846e806807e9734e0e7f83f82b75020a482d0 (diff)
downloadchromium_src-8f09c54fc78a4a8d5fa66f7da7b506c14edffa8c.zip
chromium_src-8f09c54fc78a4a8d5fa66f7da7b506c14edffa8c.tar.gz
chromium_src-8f09c54fc78a4a8d5fa66f7da7b506c14edffa8c.tar.bz2
Replaced deprecated v8 API calls by their non-deprecated counterparts.
TBR=darin@chromium.org BUG=v8:2487 Review URL: https://chromiumcodereview.appspot.com/12398007 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@186152 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'chrome/browser/task_manager')
-rw-r--r--chrome/browser/task_manager/task_manager_resource_providers.cc9
1 files changed, 3 insertions, 6 deletions
diff --git a/chrome/browser/task_manager/task_manager_resource_providers.cc b/chrome/browser/task_manager/task_manager_resource_providers.cc
index d6b4dc7..f5210f5 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();
}
////////////////////////////////////////////////////////////////////////////////