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

Side by Side Diff: third_party/WebKit/Source/core/dom/DOMURL.cpp

Issue 2401523002: Replace ASSERT family with DCHECK and so on in core/dom/. (Closed)
Patch Set: Created 4 years, 2 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) 2011 Google Inc. All rights reserved. 2 * Copyright (C) 2011 Google Inc. All rights reserved.
3 * Copyright (C) 2012 Motorola Mobility Inc. 3 * Copyright (C) 2012 Motorola Mobility Inc.
4 * 4 *
5 * Redistribution and use in source and binary forms, with or without 5 * Redistribution and use in source and binary forms, with or without
6 * modification, are permitted provided that the following conditions 6 * modification, are permitted provided that the following conditions
7 * are met: 7 * are met:
8 * 8 *
9 * 1. Redistributions of source code must retain the above copyright 9 * 1. Redistributions of source code must retain the above copyright
10 * notice, this list of conditions and the following disclaimer. 10 * notice, this list of conditions and the following disclaimer.
(...skipping 89 matching lines...) Expand 10 before | Expand all | Expand 10 after
100 100
101 void DOMURL::update() { 101 void DOMURL::update() {
102 updateSearchParams(url().query()); 102 updateSearchParams(url().query());
103 } 103 }
104 104
105 void DOMURL::updateSearchParams(const String& queryString) { 105 void DOMURL::updateSearchParams(const String& queryString) {
106 if (!m_searchParams) 106 if (!m_searchParams)
107 return; 107 return;
108 108
109 AutoReset<bool> scope(&m_isInUpdate, true); 109 AutoReset<bool> scope(&m_isInUpdate, true);
110 ASSERT(m_searchParams->urlObject() == this); 110 #if DCHECK_IS_ON()
111 DCHECK_EQ(m_searchParams->urlObject(), this);
112 #endif
111 m_searchParams->setInput(queryString); 113 m_searchParams->setInput(queryString);
112 } 114 }
113 115
114 } // namespace blink 116 } // namespace blink
OLDNEW
« no previous file with comments | « third_party/WebKit/Source/core/dom/DOMStringList.cpp ('k') | third_party/WebKit/Source/core/dom/DOMURLUtils.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698