| OLD | NEW |
| 1 // Copyright (c) 2010 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2011 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 "chrome/browser/gtk/keyword_editor_view.h" | 5 #include "chrome/browser/gtk/keyword_editor_view.h" |
| 6 | 6 |
| 7 #include <string> | 7 #include <string> |
| 8 | 8 |
| 9 #include "app/l10n_util.h" | 9 #include "app/l10n_util.h" |
| 10 #include "base/message_loop.h" | 10 #include "base/message_loop.h" |
| 11 #include "base/utf_string_conversions.h" | 11 #include "base/utf_string_conversions.h" |
| (...skipping 481 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 493 int model_row = editor->GetSelectedModelRow(); | 493 int model_row = editor->GetSelectedModelRow(); |
| 494 if (model_row == -1) { | 494 if (model_row == -1) { |
| 495 NOTREACHED(); | 495 NOTREACHED(); |
| 496 return; | 496 return; |
| 497 } | 497 } |
| 498 int new_index = editor->controller_->MakeDefaultTemplateURL(model_row); | 498 int new_index = editor->controller_->MakeDefaultTemplateURL(model_row); |
| 499 if (new_index > 0) { | 499 if (new_index > 0) { |
| 500 editor->SelectModelRow(new_index); | 500 editor->SelectModelRow(new_index); |
| 501 } | 501 } |
| 502 } | 502 } |
| OLD | NEW |