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

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

Issue 9471: Adds import/export of bookmarks to bookmarks.html file.... (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
« no previous file with comments | « chrome/browser/importer/firefox3_importer.cc ('k') | chrome/browser/importer/importer.h » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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/ie_importer.h" 5 #include "chrome/browser/importer/ie_importer.h"
6 6
7 #include <intshcut.h> 7 #include <intshcut.h>
8 #include <pstore.h> 8 #include <pstore.h>
9 #include <shlobj.h> 9 #include <shlobj.h>
10 #include <urlhist.h> 10 #include <urlhist.h>
(...skipping 91 matching lines...) Expand 10 before | Expand all | Expand 10 after
102 102
103 FavoritesInfo info; 103 FavoritesInfo info;
104 if (!GetFavoritesInfo(&info)) 104 if (!GetFavoritesInfo(&info))
105 return; 105 return;
106 106
107 BookmarkVector bookmarks; 107 BookmarkVector bookmarks;
108 ParseFavoritesFolder(info, &bookmarks); 108 ParseFavoritesFolder(info, &bookmarks);
109 109
110 if (!bookmarks.empty() && !cancelled()) { 110 if (!bookmarks.empty() && !cancelled()) {
111 main_loop_->PostTask(FROM_HERE, NewRunnableMethod(writer_, 111 main_loop_->PostTask(FROM_HERE, NewRunnableMethod(writer_,
112 &ProfileWriter::AddBookmarkEntry, bookmarks, false)); 112 &ProfileWriter::AddBookmarkEntry, bookmarks,
113 l10n_util::GetString(IDS_BOOKMARK_GROUP_FROM_IE),
114 first_run() ? ProfileWriter::FIRST_RUN : 0));
113 } 115 }
114 } 116 }
115 117
116 void IEImporter::ImportPasswordsIE6() { 118 void IEImporter::ImportPasswordsIE6() {
117 GUID AutocompleteGUID = kPStoreAutocompleteGUID; 119 GUID AutocompleteGUID = kPStoreAutocompleteGUID;
118 if (!source_path_.empty()) { 120 if (!source_path_.empty()) {
119 // We supply a fake GUID for testting. 121 // We supply a fake GUID for testting.
120 AutocompleteGUID = kUnittestGUID; 122 AutocompleteGUID = kUnittestGUID;
121 } 123 }
122 124
(...skipping 422 matching lines...) Expand 10 before | Expand all | Expand 10 after
545 if (version < 0) { 547 if (version < 0) {
546 wchar_t buffer[128]; 548 wchar_t buffer[128];
547 DWORD buffer_length = sizeof(buffer); 549 DWORD buffer_length = sizeof(buffer);
548 bool result = ReadFromRegistry(HKEY_LOCAL_MACHINE, 550 bool result = ReadFromRegistry(HKEY_LOCAL_MACHINE,
549 L"Software\\Microsoft\\Internet Explorer", 551 L"Software\\Microsoft\\Internet Explorer",
550 L"Version", buffer, &buffer_length); 552 L"Version", buffer, &buffer_length);
551 version = (result ? _wtoi(buffer) : 0); 553 version = (result ? _wtoi(buffer) : 0);
552 } 554 }
553 return version; 555 return version;
554 } 556 }
555
OLDNEW
« no previous file with comments | « chrome/browser/importer/firefox3_importer.cc ('k') | chrome/browser/importer/importer.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698