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

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

Issue 11000016: Move forms/ out of webkit/. (Closed) Base URL: http://git.chromium.org/chromium/src.git@master
Patch Set: Response to review Created 8 years, 2 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
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/importer/profile_writer.h" 5 #include "chrome/browser/importer/profile_writer.h"
6 6
7 #include <map> 7 #include <map>
8 #include <set> 8 #include <set>
9 #include <string> 9 #include <string>
10 10
(...skipping 73 matching lines...) Expand 10 before | Expand all | Expand 10 after
84 ProfileWriter::ProfileWriter(Profile* profile) : profile_(profile) {} 84 ProfileWriter::ProfileWriter(Profile* profile) : profile_(profile) {}
85 85
86 bool ProfileWriter::BookmarkModelIsLoaded() const { 86 bool ProfileWriter::BookmarkModelIsLoaded() const {
87 return BookmarkModelFactory::GetForProfile(profile_)->IsLoaded(); 87 return BookmarkModelFactory::GetForProfile(profile_)->IsLoaded();
88 } 88 }
89 89
90 bool ProfileWriter::TemplateURLServiceIsLoaded() const { 90 bool ProfileWriter::TemplateURLServiceIsLoaded() const {
91 return TemplateURLServiceFactory::GetForProfile(profile_)->loaded(); 91 return TemplateURLServiceFactory::GetForProfile(profile_)->loaded();
92 } 92 }
93 93
94 void ProfileWriter::AddPasswordForm(const webkit::forms::PasswordForm& form) { 94 void ProfileWriter::AddPasswordForm(const content::PasswordForm& form) {
95 PasswordStoreFactory::GetForProfile( 95 PasswordStoreFactory::GetForProfile(
96 profile_, Profile::EXPLICIT_ACCESS)->AddLogin(form); 96 profile_, Profile::EXPLICIT_ACCESS)->AddLogin(form);
97 } 97 }
98 98
99 #if defined(OS_WIN) 99 #if defined(OS_WIN)
100 void ProfileWriter::AddIE7PasswordInfo(const IE7PasswordInfo& info) { 100 void ProfileWriter::AddIE7PasswordInfo(const IE7PasswordInfo& info) {
101 WebDataServiceFactory::GetForProfile( 101 WebDataServiceFactory::GetForProfile(
102 profile_, Profile::EXPLICIT_ACCESS)->AddIE7Login(info); 102 profile_, Profile::EXPLICIT_ACCESS)->AddIE7Login(info);
103 } 103 }
104 #endif 104 #endif
(...skipping 216 matching lines...) Expand 10 before | Expand all | Expand 10 after
321 321
322 // Only add valid TemplateURLs to the model. 322 // Only add valid TemplateURLs to the model.
323 if ((*i)->url_ref().IsValid()) { 323 if ((*i)->url_ref().IsValid()) {
324 model->AddAndSetProfile(*i, profile_); // Takes ownership. 324 model->AddAndSetProfile(*i, profile_); // Takes ownership.
325 *i = NULL; // Prevent the vector from deleting *i later. 325 *i = NULL; // Prevent the vector from deleting *i later.
326 } 326 }
327 } 327 }
328 } 328 }
329 329
330 ProfileWriter::~ProfileWriter() {} 330 ProfileWriter::~ProfileWriter() {}
OLDNEW
« no previous file with comments | « chrome/browser/importer/profile_writer.h ('k') | chrome/browser/password_manager/login_database.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698