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

Side by Side Diff: third_party/WebKit/Source/platform/exported/WebMediaDeviceInfo.cpp

Issue 2811463002: Replace ASSERT, ASSERT_NOT_REACHED, and RELEASE_ASSERT in platform/exported (Closed)
Patch Set: rebase Created 3 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 /* 1 /*
2 * Copyright (C) 2014 Google Inc. All rights reserved. 2 * Copyright (C) 2014 Google Inc. All rights reserved.
3 * 3 *
4 * Redistribution and use in source and binary forms, with or without 4 * Redistribution and use in source and binary forms, with or without
5 * modification, are permitted provided that the following conditions 5 * modification, are permitted provided that the following conditions
6 * are met: 6 * are met:
7 * 1. Redistributions of source code must retain the above copyright 7 * 1. Redistributions of source code must retain the above copyright
8 * notice, this list of conditions and the following disclaimer. 8 * notice, this list of conditions and the following disclaimer.
9 * 2. Redistributions in binary form must reproduce the above copyright 9 * 2. Redistributions in binary form must reproduce the above copyright
10 * notice, this list of conditions and the following disclaimer in the 10 * notice, this list of conditions and the following disclaimer in the
(...skipping 72 matching lines...) Expand 10 before | Expand all | Expand 10 after
83 83
84 void WebMediaDeviceInfo::Initialize(const WebString& device_id, 84 void WebMediaDeviceInfo::Initialize(const WebString& device_id,
85 WebMediaDeviceInfo::MediaDeviceKind kind, 85 WebMediaDeviceInfo::MediaDeviceKind kind,
86 const WebString& label, 86 const WebString& label,
87 const WebString& group_id) { 87 const WebString& group_id) {
88 private_ = 88 private_ =
89 WebMediaDeviceInfoPrivate::Create(device_id, kind, label, group_id); 89 WebMediaDeviceInfoPrivate::Create(device_id, kind, label, group_id);
90 } 90 }
91 91
92 WebString WebMediaDeviceInfo::DeviceId() const { 92 WebString WebMediaDeviceInfo::DeviceId() const {
93 ASSERT(!private_.IsNull()); 93 DCHECK(!private_.IsNull());
94 return private_->DeviceId(); 94 return private_->DeviceId();
95 } 95 }
96 96
97 WebMediaDeviceInfo::MediaDeviceKind WebMediaDeviceInfo::Kind() const { 97 WebMediaDeviceInfo::MediaDeviceKind WebMediaDeviceInfo::Kind() const {
98 ASSERT(!private_.IsNull()); 98 DCHECK(!private_.IsNull());
99 return private_->Kind(); 99 return private_->Kind();
100 } 100 }
101 101
102 WebString WebMediaDeviceInfo::Label() const { 102 WebString WebMediaDeviceInfo::Label() const {
103 ASSERT(!private_.IsNull()); 103 DCHECK(!private_.IsNull());
104 return private_->Label(); 104 return private_->Label();
105 } 105 }
106 106
107 WebString WebMediaDeviceInfo::GroupId() const { 107 WebString WebMediaDeviceInfo::GroupId() const {
108 ASSERT(!private_.IsNull()); 108 DCHECK(!private_.IsNull());
109 return private_->GroupId(); 109 return private_->GroupId();
110 } 110 }
111 111
112 } // namespace blink 112 } // namespace blink
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698