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

Side by Side Diff: net/proxy/proxy_resolver_v8.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: Addressed first round of feedback Created 7 years, 9 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 | Annotate | Revision Log
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 "net/proxy/proxy_resolver_v8.h" 5 #include "net/proxy/proxy_resolver_v8.h"
6 6
7 #include <algorithm> 7 #include <algorithm>
8 #include <cstdio> 8 #include <cstdio>
9 9
10 #include "base/basictypes.h" 10 #include "base/basictypes.h"
(...skipping 718 matching lines...) Expand 10 before | Expand all | Expand 10 after
729 729
730 // static 730 // static
731 v8::Isolate* ProxyResolverV8::GetDefaultIsolate() { 731 v8::Isolate* ProxyResolverV8::GetDefaultIsolate() {
732 DCHECK(g_default_isolate_) 732 DCHECK(g_default_isolate_)
733 << "Must call ProxyResolverV8::RememberDefaultIsolate() first"; 733 << "Must call ProxyResolverV8::RememberDefaultIsolate() first";
734 return g_default_isolate_; 734 return g_default_isolate_;
735 } 735 }
736 736
737 v8::Isolate* ProxyResolverV8::g_default_isolate_ = NULL; 737 v8::Isolate* ProxyResolverV8::g_default_isolate_ = NULL;
738 738
739 // static
740 void ProxyResolverV8::GetHeapStatistics(v8::HeapStatistics* heap_statistics) {
741 GetDefaultIsolate()->GetHeapStatistics(heap_statistics);
eroman 2013/03/05 00:40:45 I think this should be prepared to handle the case
Sven Panne 2013/03/05 07:22:39 Good point, I'll handle that case by zero-ing out
Sven Panne 2013/03/05 07:32:05 I was a bit too quick here: One can't modify HeapS
Sven Panne 2013/03/05 08:34:31 After talking to Jochen and re-thinking things aga
742 }
743
739 } // namespace net 744 } // namespace net
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698