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

Side by Side Diff: media/midi/midi_manager_winrt.cc

Issue 2301523008: Fix Windows build warning (Closed)
Patch Set: Created 4 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 unified diff | Download patch
« no previous file with comments | « no previous file | 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 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 "media/midi/midi_manager_winrt.h" 5 #include "media/midi/midi_manager_winrt.h"
6 6
7 // TODO(shaochuan): Remove this once clang supports uuid syntax in <robuffer.h>. 7 // TODO(shaochuan): Remove this once clang supports uuid syntax in <robuffer.h>.
8 // https://reviews.llvm.org/D23895 8 // https://reviews.llvm.org/D23895
9 namespace Windows { 9 namespace Windows {
10 namespace Storage { 10 namespace Storage {
11 namespace Streams { 11 namespace Streams {
12 #pragma warning(disable : 4467)
12 struct __declspec(uuid("905a0fef-bc53-11df-8c49-001e4fc686da")) 13 struct __declspec(uuid("905a0fef-bc53-11df-8c49-001e4fc686da"))
13 IBufferByteAccess; 14 IBufferByteAccess;
14 } 15 }
15 } 16 }
16 } 17 }
17 18
18 #include <comdef.h> 19 #include <comdef.h>
19 #include <robuffer.h> 20 #include <robuffer.h>
20 #include <windows.devices.enumeration.h> 21 #include <windows.devices.enumeration.h>
21 #include <windows.devices.midi.h> 22 #include <windows.devices.midi.h>
(...skipping 929 matching lines...) Expand 10 before | Expand all | Expand 10 after
951 void MidiManagerWinrt::OnPortManagerReady() { 952 void MidiManagerWinrt::OnPortManagerReady() {
952 DCHECK(com_thread_checker_->CalledOnValidThread()); 953 DCHECK(com_thread_checker_->CalledOnValidThread());
953 DCHECK(port_manager_ready_count_ < 2); 954 DCHECK(port_manager_ready_count_ < 2);
954 955
955 if (++port_manager_ready_count_ == 2) 956 if (++port_manager_ready_count_ == 2)
956 CompleteInitialization(Result::OK); 957 CompleteInitialization(Result::OK);
957 } 958 }
958 959
959 } // namespace midi 960 } // namespace midi
960 } // namespace media 961 } // namespace media
OLDNEW
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698