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

Side by Side Diff: components/autofill/core/browser/password_generator.cc

Issue 17392006: In components/autofill, move browser/ to core/browser/ (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Rebase to fix conflicts Created 7 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 unified diff | Download patch | Annotate | Revision Log
OLDNEW
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
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
OLDNEW
« no previous file with comments | « components/autofill/core/browser/password_generator.h ('k') | components/autofill/core/browser/password_generator_unittest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698