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

Side by Side Diff: chrome/browser/password_manager/login_database.cc

Issue 18128002: Use a direct include of time headers in chrome/browser/, part 4. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 7 years, 5 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 "chrome/browser/password_manager/login_database.h" 5 #include "chrome/browser/password_manager/login_database.h"
6 6
7 #include <algorithm> 7 #include <algorithm>
8 #include <limits> 8 #include <limits>
9 9
10 #include "base/command_line.h" 10 #include "base/command_line.h"
11 #include "base/files/file_path.h" 11 #include "base/files/file_path.h"
12 #include "base/logging.h" 12 #include "base/logging.h"
13 #include "base/metrics/histogram.h" 13 #include "base/metrics/histogram.h"
14 #include "base/pickle.h" 14 #include "base/pickle.h"
15 #include "base/strings/string_util.h" 15 #include "base/strings/string_util.h"
16 #include "base/time.h" 16 #include "base/time/time.h"
17 #include "chrome/common/chrome_switches.h" 17 #include "chrome/common/chrome_switches.h"
18 #include "net/base/registry_controlled_domains/registry_controlled_domain.h" 18 #include "net/base/registry_controlled_domains/registry_controlled_domain.h"
19 #include "sql/connection.h" 19 #include "sql/connection.h"
20 #include "sql/statement.h" 20 #include "sql/statement.h"
21 #include "sql/transaction.h" 21 #include "sql/transaction.h"
22 22
23 using content::PasswordForm; 23 using content::PasswordForm;
24 24
25 static const int kCurrentVersionNumber = 3; 25 static const int kCurrentVersionNumber = 3;
26 static const int kCompatibleVersionNumber = 1; 26 static const int kCompatibleVersionNumber = 1;
(...skipping 522 matching lines...) Expand 10 before | Expand all | Expand 10 after
549 std::vector<string16> LoginDatabase::DeserializeVector(const Pickle& p) const { 549 std::vector<string16> LoginDatabase::DeserializeVector(const Pickle& p) const {
550 std::vector<string16> ret; 550 std::vector<string16> ret;
551 string16 str; 551 string16 str;
552 552
553 PickleIterator iterator(p); 553 PickleIterator iterator(p);
554 while (iterator.ReadString16(&str)) { 554 while (iterator.ReadString16(&str)) {
555 ret.push_back(str); 555 ret.push_back(str);
556 } 556 }
557 return ret; 557 return ret;
558 } 558 }
OLDNEW
« no previous file with comments | « chrome/browser/omnibox/omnibox_log.h ('k') | chrome/browser/password_manager/login_database_unittest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698