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

Side by Side Diff: third_party/WebKit/Source/platform/exported/WebContentSettingCallbacks.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 // Copyright 2015 The Chromium Authors. All rights reserved. 1 // Copyright 2015 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 "public/platform/WebContentSettingCallbacks.h" 5 #include "public/platform/WebContentSettingCallbacks.h"
6 6
7 #include <memory> 7 #include <memory>
8 #include "platform/ContentSettingCallbacks.h" 8 #include "platform/ContentSettingCallbacks.h"
9 #include "platform/wtf/RefCounted.h" 9 #include "platform/wtf/RefCounted.h"
10 10
(...skipping 25 matching lines...) Expand all
36 void WebContentSettingCallbacks::Reset() { 36 void WebContentSettingCallbacks::Reset() {
37 private_.Reset(); 37 private_.Reset();
38 } 38 }
39 39
40 void WebContentSettingCallbacks::Assign( 40 void WebContentSettingCallbacks::Assign(
41 const WebContentSettingCallbacks& other) { 41 const WebContentSettingCallbacks& other) {
42 private_ = other.private_; 42 private_ = other.private_;
43 } 43 }
44 44
45 void WebContentSettingCallbacks::DoAllow() { 45 void WebContentSettingCallbacks::DoAllow() {
46 ASSERT(!private_.IsNull()); 46 DCHECK(!private_.IsNull());
47 private_->Callbacks()->OnAllowed(); 47 private_->Callbacks()->OnAllowed();
48 private_.Reset(); 48 private_.Reset();
49 } 49 }
50 50
51 void WebContentSettingCallbacks::DoDeny() { 51 void WebContentSettingCallbacks::DoDeny() {
52 ASSERT(!private_.IsNull()); 52 DCHECK(!private_.IsNull());
53 private_->Callbacks()->OnDenied(); 53 private_->Callbacks()->OnDenied();
54 private_.Reset(); 54 private_.Reset();
55 } 55 }
56 56
57 } // namespace blink 57 } // namespace blink
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698