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

Side by Side Diff: content/renderer/render_view_impl.cc

Issue 14865012: Merge 191377 "Move webrtc behind flag(--enable-webrtc) for b..." (Closed) Base URL: svn://svn.chromium.org/chrome/branches/1500/src/
Patch Set: add missing file Created 7 years, 7 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
« no previous file with comments | « content/renderer/render_thread_impl.cc ('k') | no next file » | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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 "content/renderer/render_view_impl.h" 5 #include "content/renderer/render_view_impl.h"
6 6
7 #include <algorithm> 7 #include <algorithm>
8 #include <cmath> 8 #include <cmath>
9 9
10 #include "base/auto_reset.h" 10 #include "base/auto_reset.h"
(...skipping 4030 matching lines...) Expand 10 before | Expand all | Expand 10 after
4041 if (!browser_plugin_manager_) 4041 if (!browser_plugin_manager_)
4042 browser_plugin_manager_ = BrowserPluginManager::Create(this); 4042 browser_plugin_manager_ = BrowserPluginManager::Create(this);
4043 return browser_plugin_manager_; 4043 return browser_plugin_manager_;
4044 } 4044 }
4045 4045
4046 void RenderViewImpl::EnsureMediaStreamImpl() { 4046 void RenderViewImpl::EnsureMediaStreamImpl() {
4047 if (!RenderThreadImpl::current()) // Will be NULL during unit tests. 4047 if (!RenderThreadImpl::current()) // Will be NULL during unit tests.
4048 return; 4048 return;
4049 4049
4050 #if defined(OS_ANDROID) 4050 #if defined(OS_ANDROID)
4051 if (CommandLine::ForCurrentProcess()->HasSwitch(switches::kDisableWebRTC)) 4051 if (!CommandLine::ForCurrentProcess()->HasSwitch(switches::kEnableWebRTC))
4052 return; 4052 return;
4053 #endif 4053 #endif
4054 4054
4055 #if defined(ENABLE_WEBRTC) 4055 #if defined(ENABLE_WEBRTC)
4056 if (!media_stream_dispatcher_) 4056 if (!media_stream_dispatcher_)
4057 media_stream_dispatcher_ = new MediaStreamDispatcher(this); 4057 media_stream_dispatcher_ = new MediaStreamDispatcher(this);
4058 4058
4059 if (!media_stream_impl_) { 4059 if (!media_stream_impl_) {
4060 media_stream_impl_ = new MediaStreamImpl( 4060 media_stream_impl_ = new MediaStreamImpl(
4061 this, 4061 this,
(...skipping 2467 matching lines...) Expand 10 before | Expand all | Expand 10 after
6529 WebURL url = icon_urls[i].iconURL(); 6529 WebURL url = icon_urls[i].iconURL();
6530 if (!url.isEmpty()) 6530 if (!url.isEmpty())
6531 urls.push_back(FaviconURL(url, 6531 urls.push_back(FaviconURL(url,
6532 ToFaviconType(icon_urls[i].iconType()))); 6532 ToFaviconType(icon_urls[i].iconType())));
6533 } 6533 }
6534 SendUpdateFaviconURL(urls); 6534 SendUpdateFaviconURL(urls);
6535 } 6535 }
6536 6536
6537 6537
6538 } // namespace content 6538 } // namespace content
OLDNEW
« no previous file with comments | « content/renderer/render_thread_impl.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698