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

Side by Side Diff: chrome/common/url_row_type.cc

Issue 2106015: Move data types used in the importer process to common/, in preparation for i... (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: '' Created 10 years, 7 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
« no previous file with comments | « chrome/common/url_row_type.h ('k') | no next file » | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Property Changes:
Added: svn:eol-style
+ LF
OLDNEW
(Empty)
1 // Copyright (c) 2010 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file.
4
5 #include "url_row_type.h"
6
7 using base::Time;
8
9 namespace history {
10
11 void URLRow::Swap(URLRow* other) {
12 std::swap(id_, other->id_);
13 url_.Swap(&other->url_);
14 title_.swap(other->title_);
15 std::swap(visit_count_, other->visit_count_);
16 std::swap(typed_count_, other->typed_count_);
17 std::swap(last_visit_, other->last_visit_);
18 std::swap(hidden_, other->hidden_);
19 std::swap(favicon_id_, other->favicon_id_);
20 }
21
22 void URLRow::Initialize() {
23 id_ = 0;
24 visit_count_ = false;
25 typed_count_ = false;
26 last_visit_ = Time();
27 hidden_ = false;
28 favicon_id_ = 0;
29 }
30
31 } // namespace history
OLDNEW
« no previous file with comments | « chrome/common/url_row_type.h ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698