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

Side by Side Diff: third_party/WebKit/Source/modules/webdatabase/SQLResultSet.cpp

Issue 2813433002: Replace ASSERT, ASSERT_NOT_REACHED, and RELEASE_ASSERT in modules/webdatabase (Closed)
Patch Set: Replace ASSERT, ASSERT_NOT_REACHED, and RELEASE_ASSERT in modules/webdatabase 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) 2007 Apple Inc. All rights reserved. 2 * Copyright (C) 2007 Apple 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 * 7 *
8 * 1. Redistributions of source code must retain the above copyright 8 * 1. Redistributions of source code must retain the above copyright
9 * notice, this list of conditions and the following disclaimer. 9 * notice, this list of conditions and the following disclaimer.
10 * 2. Redistributions in binary form must reproduce the above copyright 10 * 2. Redistributions in binary form must reproduce the above copyright
(...skipping 50 matching lines...) Expand 10 before | Expand all | Expand 10 after
61 61
62 int SQLResultSet::rowsAffected() const { 62 int SQLResultSet::rowsAffected() const {
63 return rows_affected_; 63 return rows_affected_;
64 } 64 }
65 65
66 SQLResultSetRowList* SQLResultSet::rows() const { 66 SQLResultSetRowList* SQLResultSet::rows() const {
67 return rows_.Get(); 67 return rows_.Get();
68 } 68 }
69 69
70 void SQLResultSet::SetInsertId(int64_t id) { 70 void SQLResultSet::SetInsertId(int64_t id) {
71 ASSERT(!insert_id_set_); 71 DCHECK(!insert_id_set_);
72 72
73 insert_id_ = id; 73 insert_id_ = id;
74 insert_id_set_ = true; 74 insert_id_set_ = true;
75 } 75 }
76 76
77 void SQLResultSet::SetRowsAffected(int count) { 77 void SQLResultSet::SetRowsAffected(int count) {
78 rows_affected_ = count; 78 rows_affected_ = count;
79 is_valid_ = true; 79 is_valid_ = true;
80 } 80 }
81 81
82 } // namespace blink 82 } // namespace blink
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698