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

Side by Side Diff: third_party/WebKit/Source/web/WebSpeechGrammar.cpp

Issue 1851293002: Remove BLINK_ASSERT() and BLINK_ASSERT_NOT_REACHED() macros. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Check the |callbacks| for nullptr and use explicit delete. 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 /* 1 /*
2 * Copyright (C) 2012 Google Inc. All rights reserved. 2 * Copyright (C) 2012 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 * * Redistributions of source code must retain the above copyright 7 * * 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 * * Redistributions in binary form must reproduce the above copyright 9 * * 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 30 matching lines...) Expand all
41 } 41 }
42 42
43 WebSpeechGrammar& WebSpeechGrammar::operator=(SpeechGrammar* value) 43 WebSpeechGrammar& WebSpeechGrammar::operator=(SpeechGrammar* value)
44 { 44 {
45 m_private = value; 45 m_private = value;
46 return *this; 46 return *this;
47 } 47 }
48 48
49 WebURL WebSpeechGrammar::src() const 49 WebURL WebSpeechGrammar::src() const
50 { 50 {
51 BLINK_ASSERT(m_private.get()); 51 DCHECK(m_private.get());
52 return m_private->src(); 52 return m_private->src();
53 } 53 }
54 54
55 float WebSpeechGrammar::weight() const 55 float WebSpeechGrammar::weight() const
56 { 56 {
57 BLINK_ASSERT(m_private.get()); 57 DCHECK(m_private.get());
58 return m_private->weight(); 58 return m_private->weight();
59 } 59 }
60 60
61 } // namespace blink 61 } // namespace blink
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698