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

Unified Diff: chrome/browser/autocomplete/autocomplete_popup_model.cc

Issue 140009: More CHECKs in my continuing effort to figure out what is going on. Neither ... (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: Created 11 years, 6 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « no previous file | chrome/browser/views/autocomplete/autocomplete_popup_contents_view.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/browser/autocomplete/autocomplete_popup_model.cc
===================================================================
--- chrome/browser/autocomplete/autocomplete_popup_model.cc (revision 18765)
+++ chrome/browser/autocomplete/autocomplete_popup_model.cc (working copy)
@@ -95,7 +95,7 @@
void AutocompletePopupModel::SetSelectedLine(size_t line,
bool reset_to_default) {
const AutocompleteResult& result = controller_->result();
- DCHECK(line < result.size());
+ CHECK(line < result.size());
if (result.empty())
return;
@@ -142,7 +142,7 @@
void AutocompletePopupModel::ResetToDefaultMatch() {
const AutocompleteResult& result = controller_->result();
- DCHECK(!result.empty());
+ CHECK(!result.empty());
SetSelectedLine(result.default_match() - result.begin(), true);
}
« no previous file with comments | « no previous file | chrome/browser/views/autocomplete/autocomplete_popup_contents_view.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698