Index: chrome/browser/custom_home_pages_table_model.cc |
diff --git a/chrome/browser/custom_home_pages_table_model.cc b/chrome/browser/custom_home_pages_table_model.cc |
index 24607174635a0eab19ed825f5d08dfc3e82986d2..c2cdfa196ad8305fa68b4b11631a6bb0731e1826 100644 |
--- a/chrome/browser/custom_home_pages_table_model.cc |
+++ b/chrome/browser/custom_home_pages_table_model.cc |
@@ -96,7 +96,7 @@ void CustomHomePagesTableModel::SetURLs(const std::vector<GURL>& urls) { |
*/ |
void CustomHomePagesTableModel::MoveURLs(int insert_before, |
const std::vector<int>& index_list) { |
- DCHECK(!index_list.empty()); |
+ if (index_list.empty()) return; |
DCHECK(insert_before >= 0 && insert_before <= RowCount()); |
// The range of elements that needs to be reshuffled is [ |first|, |last| ). |