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

Side by Side Diff: chrome/browser/importer/firefox2_importer.cc

Issue 7995: Move Time, TimeDelta and TimeTicks into namespace base. (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: Created 12 years, 1 month 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) 2006-2008 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2006-2008 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/importer/firefox2_importer.h" 5 #include "chrome/browser/importer/firefox2_importer.h"
6 6
7 #include "base/file_util.h" 7 #include "base/file_util.h"
8 #include "base/path_service.h" 8 #include "base/path_service.h"
9 #include "base/registry.h" 9 #include "base/registry.h"
10 #include "base/string_util.h" 10 #include "base/string_util.h"
11 #include "base/values.h" 11 #include "base/values.h"
12 #include "chrome/browser/importer/firefox_importer_utils.h" 12 #include "chrome/browser/importer/firefox_importer_utils.h"
13 #include "chrome/browser/importer/mork_reader.h" 13 #include "chrome/browser/importer/mork_reader.h"
14 #include "chrome/browser/template_url.h" 14 #include "chrome/browser/template_url.h"
15 #include "chrome/browser/template_url_parser.h" 15 #include "chrome/browser/template_url_parser.h"
16 #include "chrome/common/l10n_util.h" 16 #include "chrome/common/l10n_util.h"
17 #include "chrome/common/time_format.h" 17 #include "chrome/common/time_format.h"
18 #include "generated_resources.h" 18 #include "generated_resources.h"
19 #include "net/base/data_url.h" 19 #include "net/base/data_url.h"
20 20
21 using base::Time;
22
21 // Firefox2Importer. 23 // Firefox2Importer.
22 24
23 Firefox2Importer::Firefox2Importer() { 25 Firefox2Importer::Firefox2Importer() {
24 } 26 }
25 27
26 Firefox2Importer::~Firefox2Importer() { 28 Firefox2Importer::~Firefox2Importer() {
27 } 29 }
28 30
29 void Firefox2Importer::StartImport(ProfileInfo profile_info, 31 void Firefox2Importer::StartImport(ProfileInfo profile_info,
30 uint16 items, ProfileWriter* writer, 32 uint16 items, ProfileWriter* writer,
(...skipping 474 matching lines...) Expand 10 before | Expand all | Expand 10 after
505 507
506 // We need to make up a URL for the favicon. We use a version of the page's 508 // We need to make up a URL for the favicon. We use a version of the page's
507 // URL so that we can be sure it will not collide. 509 // URL so that we can be sure it will not collide.
508 usage.favicon_url = GURL(std::string("made-up-favicon:") + link_url.spec()); 510 usage.favicon_url = GURL(std::string("made-up-favicon:") + link_url.spec());
509 511
510 // We only have one URL per favicon for Firefox 2 bookmarks. 512 // We only have one URL per favicon for Firefox 2 bookmarks.
511 usage.urls.insert(link_url); 513 usage.urls.insert(link_url);
512 514
513 favicons->push_back(usage); 515 favicons->push_back(usage);
514 } 516 }
515
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698