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

Unified Diff: chrome/renderer/chrome_render_process_observer.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
Index: chrome/renderer/chrome_render_process_observer.cc
diff --git a/chrome/renderer/chrome_render_process_observer.cc b/chrome/renderer/chrome_render_process_observer.cc
index bf2ba58d8226b679dda39ec16f2559b5fae048c2..4eb10592a0c63e438b54d389b4ae31c76f0b5620 100644
--- a/chrome/renderer/chrome_render_process_observer.cc
+++ b/chrome/renderer/chrome_render_process_observer.cc
@@ -288,7 +288,7 @@ void ChromeRenderProcessObserver::OnSetFieldTrialGroup(
void ChromeRenderProcessObserver::OnGetV8HeapStats() {
v8::HeapStatistics heap_stats;
- v8::V8::GetHeapStatistics(&heap_stats);
+ v8::Isolate::GetCurrent()->GetHeapStatistics(&heap_stats);
jochen (gone - plz use gerrit) 2013/03/04 13:51:25 can you add a TODO that this doesn't include worke
Sven Panne 2013/03/04 15:01:46 Done, here and in MemoryUsageKB, which is basicall
RenderThread::Get()->Send(new ChromeViewHostMsg_V8HeapStats(
heap_stats.total_heap_size(), heap_stats.used_heap_size()));
}

Powered by Google App Engine
This is Rietveld 408576698