OLD | NEW |
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2012 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 "components/autofill/browser/password_generator.h" | 5 #include "components/autofill/core/browser/password_generator.h" |
6 | 6 |
7 #include <algorithm> | 7 #include <algorithm> |
8 #include <vector> | 8 #include <vector> |
9 | 9 |
10 #include "base/basictypes.h" | 10 #include "base/basictypes.h" |
11 #include "base/logging.h" | 11 #include "base/logging.h" |
12 #include "base/rand_util.h" | 12 #include "base/rand_util.h" |
13 | 13 |
14 const int kMinUpper = 65; // First upper case letter 'A' | 14 const int kMinUpper = 65; // First upper case letter 'A' |
15 const int kMaxUpper = 90; // Last upper case letter 'Z' | 15 const int kMaxUpper = 90; // Last upper case letter 'Z' |
(...skipping 100 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
116 // here as most sites don't allow a lot of non-alphanumeric characters. | 116 // here as most sites don't allow a lot of non-alphanumeric characters. |
117 ret.push_back( | 117 ret.push_back( |
118 alphanumeric_characters.at( | 118 alphanumeric_characters.at( |
119 base::RandInt(0, alphanumeric_characters.size() - 1))); | 119 base::RandInt(0, alphanumeric_characters.size() - 1))); |
120 } | 120 } |
121 } | 121 } |
122 return ret; | 122 return ret; |
123 } | 123 } |
124 | 124 |
125 } // namespace autofill | 125 } // namespace autofill |
OLD | NEW |