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

Unified Diff: content/renderer/media/media_stream_impl.cc

Issue 10071038: RefCounted types should not have public destructors, content/browser part 2 (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Copyright bump Created 8 years, 8 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 | « content/renderer/media/media_stream_impl.h ('k') | content/renderer/media/render_audiosourceprovider.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: content/renderer/media/media_stream_impl.cc
diff --git a/content/renderer/media/media_stream_impl.cc b/content/renderer/media/media_stream_impl.cc
index b2502ec4ab915066641f7a2d0646d7b7db1a74fb..4add708772bce87f4e9b62f8a55518ce223e4c3c 100644
--- a/content/renderer/media/media_stream_impl.cc
+++ b/content/renderer/media/media_stream_impl.cc
@@ -75,8 +75,7 @@ static std::string ExtractManagerStreamLabel(
return manager_label;
}
-
-int MediaStreamImpl::next_request_id_ = 0;
+static int g_next_request_id = 0;
MediaStreamImpl::MediaStreamImpl(
content::RenderView* render_view,
@@ -181,7 +180,7 @@ void MediaStreamImpl::requestUserMedia(
UMA_HISTOGRAM_COUNTS_100(kHistogramGetUserMedia, 1);
DCHECK(CalledOnValidThread());
DCHECK(!user_media_request.isNull());
- int request_id = next_request_id_++;
+ int request_id = g_next_request_id++;
bool audio = user_media_request.audio();
media_stream::StreamOptions::VideoOption video_option =
« no previous file with comments | « content/renderer/media/media_stream_impl.h ('k') | content/renderer/media/render_audiosourceprovider.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698