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

Unified Diff: content/browser/renderer_host/media/media_stream_manager.cc

Issue 10990079: Clean up scoped_com_initializer.h. Remove #ifdefs for non-Windows (this is in base/win, no one sho… (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src/
Patch Set: Created 8 years, 3 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/browser/renderer_host/media/media_stream_manager.h ('k') | content/gpu/gpu_main.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: content/browser/renderer_host/media/media_stream_manager.cc
===================================================================
--- content/browser/renderer_host/media/media_stream_manager.cc (revision 158860)
+++ content/browser/renderer_host/media/media_stream_manager.cc (working copy)
@@ -10,7 +10,6 @@
#include "base/compiler_specific.h"
#include "base/logging.h"
#include "base/rand_util.h"
-#include "base/win/scoped_com_initializer.h"
#include "content/browser/renderer_host/media/audio_input_device_manager.h"
#include "content/browser/renderer_host/media/media_stream_device_settings.h"
#include "content/browser/renderer_host/media/media_stream_requester.h"
@@ -21,6 +20,10 @@
#include "content/public/browser/media_observer.h"
#include "googleurl/src/gurl.h"
+#if defined(OS_WIN)
+#include "base/win/scoped_com_initializer.h"
+#endif
+
using content::BrowserThread;
namespace media_stream {
@@ -51,23 +54,22 @@
options.video_type == stream_type);
}
-DeviceThread::DeviceThread(const char* name)
- : base::Thread(name) {
+#if defined(OS_WIN)
cpu_(ooo_6.6-7.5) 2012/10/01 19:47:27 does block 58-62 need to be ifdef(os_win) ?
Peter Kasting 2012/10/01 20:23:17 Yes, see the header file changes.
+DeviceThread::DeviceThread(const char* name) : base::Thread(name) {
}
DeviceThread::~DeviceThread() {
- Stop();
cpu_(ooo_6.6-7.5) 2012/10/01 19:47:27 did you mean to remove this stop()? I don't see a
Peter Kasting 2012/10/01 20:23:17 I did mean to remove it, because the superclass de
}
void DeviceThread::Init() {
- using base::win::ScopedCOMInitializer;
- // Enter the multi-threaded apartment.
- com_initializer_.reset(new ScopedCOMInitializer(ScopedCOMInitializer::kMTA));
+ com_initializer_.reset(new base::win::ScopedCOMInitializer(
+ base::win::ScopedCOMInitializer::kMTA));
}
void DeviceThread::CleanUp() {
com_initializer_.reset();
}
+#endif
// TODO(xians): Merge DeviceRequest with MediaStreamRequest.
struct MediaStreamManager::DeviceRequest {
« no previous file with comments | « content/browser/renderer_host/media/media_stream_manager.h ('k') | content/gpu/gpu_main.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698