Chromium Code Reviews| OLD | NEW |
|---|---|
| 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 #import "chrome/browser/ui/cocoa/passwords/credentials_selection_view.h" | 5 #import "chrome/browser/ui/cocoa/passwords/credentials_selection_view_cocoa.h" |
|
tapted
2017/04/12 05:08:42
it's worth mentioning in the CL description body t
varkha
2017/04/12 09:16:43
Done.
| |
| 6 | 6 |
| 7 #include <stddef.h> | 7 #include <stddef.h> |
| 8 | 8 |
| 9 #import "chrome/browser/ui/cocoa/bubble_combobox.h" | 9 #import "chrome/browser/ui/cocoa/bubble_combobox.h" |
| 10 #include "chrome/browser/ui/cocoa/chrome_style.h" | 10 #include "chrome/browser/ui/cocoa/chrome_style.h" |
| 11 #import "chrome/browser/ui/cocoa/passwords/passwords_bubble_utils.h" | 11 #import "chrome/browser/ui/cocoa/passwords/passwords_bubble_utils.h" |
| 12 #include "chrome/browser/ui/passwords/manage_passwords_bubble_model.h" | 12 #include "chrome/browser/ui/passwords/manage_passwords_bubble_model.h" |
| 13 #include "ui/base/models/simple_combobox_model.h" | 13 #include "ui/base/models/simple_combobox_model.h" |
| 14 | 14 |
| 15 namespace { | 15 namespace { |
| (...skipping 92 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 108 return self; | 108 return self; |
| 109 } | 109 } |
| 110 | 110 |
| 111 - (const autofill::PasswordForm*)getSelectedCredentials { | 111 - (const autofill::PasswordForm*)getSelectedCredentials { |
| 112 int selected_index = [usernamePopUpButton_ indexOfSelectedItem]; | 112 int selected_index = [usernamePopUpButton_ indexOfSelectedItem]; |
| 113 CHECK(selected_index >= 0); | 113 CHECK(selected_index >= 0); |
| 114 return &model_->local_credentials()[selected_index]; | 114 return &model_->local_credentials()[selected_index]; |
| 115 } | 115 } |
| 116 | 116 |
| 117 @end | 117 @end |
| OLD | NEW |