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

Side by Side Diff: chromecast/media/cma/backend/alsa/cast_media_shlib.cc

Issue 1875623002: Convert //chromecast from scoped_ptr to std::unique_ptr (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 4 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 unified diff | Download patch
OLDNEW
1 // Copyright 2015 The Chromium Authors. All rights reserved. 1 // Copyright 2015 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 <alsa/asoundlib.h> 5 #include <alsa/asoundlib.h>
6 6
7 #include "base/at_exit.h" 7 #include "base/at_exit.h"
8 #include "base/command_line.h" 8 #include "base/command_line.h"
9 #include "base/files/scoped_file.h" 9 #include "base/files/scoped_file.h"
10 #include "base/logging.h" 10 #include "base/logging.h"
(...skipping 65 matching lines...) Expand 10 before | Expand all | Expand 10 after
76 snd_ctl_elem_value_set_id(g_rate_offset_ppm, g_rate_offset_id); 76 snd_ctl_elem_value_set_id(g_rate_offset_ppm, g_rate_offset_id);
77 } else { 77 } else {
78 LOG(ERROR) << "snd_hctl_find_elem failed to find the rate offset element."; 78 LOG(ERROR) << "snd_hctl_find_elem failed to find the rate offset element.";
79 } 79 }
80 } 80 }
81 81
82 DefaultVideoPlane* g_video_plane = nullptr; 82 DefaultVideoPlane* g_video_plane = nullptr;
83 83
84 base::AtExitManager g_at_exit_manager; 84 base::AtExitManager g_at_exit_manager;
85 85
86 scoped_ptr<base::ThreadTaskRunnerHandle> g_thread_task_runner_handle; 86 std::unique_ptr<base::ThreadTaskRunnerHandle> g_thread_task_runner_handle;
87 87
88 } // namespace 88 } // namespace
89 89
90 void CastMediaShlib::Initialize(const std::vector<std::string>& argv) { 90 void CastMediaShlib::Initialize(const std::vector<std::string>& argv) {
91 base::CommandLine::Init(0, nullptr); 91 base::CommandLine::Init(0, nullptr);
92 base::CommandLine::ForCurrentProcess()->InitFromArgv(argv); 92 base::CommandLine::ForCurrentProcess()->InitFromArgv(argv);
93 93
94 g_video_plane = new DefaultVideoPlane(); 94 g_video_plane = new DefaultVideoPlane();
95 95
96 InitializeAlsaControls(); 96 InitializeAlsaControls();
(...skipping 98 matching lines...) Expand 10 before | Expand all | Expand 10 after
195 StreamMixerAlsa::Get()->AddLoopbackAudioObserver(observer); 195 StreamMixerAlsa::Get()->AddLoopbackAudioObserver(observer);
196 } 196 }
197 197
198 void CastMediaShlib::RemoveLoopbackAudioObserver( 198 void CastMediaShlib::RemoveLoopbackAudioObserver(
199 LoopbackAudioObserver* observer) { 199 LoopbackAudioObserver* observer) {
200 StreamMixerAlsa::Get()->RemoveLoopbackAudioObserver(observer); 200 StreamMixerAlsa::Get()->RemoveLoopbackAudioObserver(observer);
201 } 201 }
202 202
203 } // namespace media 203 } // namespace media
204 } // namespace chromecast 204 } // namespace chromecast
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698