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

Side by Side Diff: content/browser/renderer_host/media/media_devices_manager.cc

Issue 2691393002: Fix auto raw pointer deduction on linux (Closed)
Patch Set: rebase Created 3 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
OLDNEW
1 // Copyright 2016 The Chromium Authors. All rights reserved. 1 // Copyright 2016 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/browser/renderer_host/media/media_devices_manager.h" 5 #include "content/browser/renderer_host/media/media_devices_manager.h"
6 6
7 #include <stddef.h> 7 #include <stddef.h>
8 #include <stdint.h> 8 #include <stdint.h>
9 9
10 #include <algorithm> 10 #include <algorithm>
(...skipping 502 matching lines...) Expand 10 before | Expand all | Expand 10 after
513 513
514 media_stream_manager_->NotifyDevicesChanged(type, new_snapshot); 514 media_stream_manager_->NotifyDevicesChanged(type, new_snapshot);
515 } 515 }
516 516
517 void MediaDevicesManager::NotifyDeviceChangeSubscribers( 517 void MediaDevicesManager::NotifyDeviceChangeSubscribers(
518 MediaDeviceType type, 518 MediaDeviceType type,
519 const MediaDeviceInfoArray& snapshot) { 519 const MediaDeviceInfoArray& snapshot) {
520 DCHECK_CURRENTLY_ON(BrowserThread::IO); 520 DCHECK_CURRENTLY_ON(BrowserThread::IO);
521 DCHECK(IsValidMediaDeviceType(type)); 521 DCHECK(IsValidMediaDeviceType(type));
522 522
523 for (const auto& subscriber : device_change_subscribers_[type]) { 523 for (auto* subscriber : device_change_subscribers_[type]) {
524 subscriber->OnDevicesChanged(type, snapshot); 524 subscriber->OnDevicesChanged(type, snapshot);
525 } 525 }
526 } 526 }
527 527
528 } // namespace content 528 } // namespace content
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698