summaryrefslogtreecommitdiffstats
path: root/chrome/profile_import
diff options
context:
space:
mode:
authortfarina@chromium.org <tfarina@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2011-03-02 23:23:08 +0000
committertfarina@chromium.org <tfarina@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2011-03-02 23:23:08 +0000
commit58d7bb5fc1d079213e852c28d0557f17907e8ba6 (patch)
tree8b527c3e7522ee5f8f51b0a788bf33095522302e /chrome/profile_import
parenta0798ecd866df57352c628ee6adf191a3fdc865e (diff)
downloadchromium_src-58d7bb5fc1d079213e852c28d0557f17907e8ba6.zip
chromium_src-58d7bb5fc1d079213e852c28d0557f17907e8ba6.tar.gz
chromium_src-58d7bb5fc1d079213e852c28d0557f17907e8ba6.tar.bz2
importer: Factor out StartImportingWithUI() function in its own file.
- Move this function to importer_progress_dialog.h - Rename it ShowImportProgressDialog. - Put it under the importer namespace (so the callers can know where it comes from). - Reorder the parameters to be more easy to read. - Remove some using declarations. BUG=None TEST=importer unit tests and importing works as before. Review URL: http://codereview.chromium.org/6597095 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@76654 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'chrome/profile_import')
-rw-r--r--chrome/profile_import/profile_import_thread.cc8
1 files changed, 4 insertions, 4 deletions
diff --git a/chrome/profile_import/profile_import_thread.cc b/chrome/profile_import/profile_import_thread.cc
index f7a665b..d012d13 100644
--- a/chrome/profile_import/profile_import_thread.cc
+++ b/chrome/profile_import/profile_import_thread.cc
@@ -1,4 +1,4 @@
-// Copyright (c) 2010 The Chromium Authors. All rights reserved.
+// Copyright (c) 2011 The Chromium Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
@@ -49,7 +49,7 @@ bool ProfileImportThread::OnControlMessageReceived(const IPC::Message& msg) {
}
void ProfileImportThread::OnImportStart(
- const ProfileInfo& profile_info,
+ const importer::ProfileInfo& profile_info,
int items,
const DictionaryValue& localized_strings,
bool import_to_bookmark_bar) {
@@ -95,11 +95,11 @@ void ProfileImportThread::OnImportItemFinished(uint16 item) {
NotifyEnded();
}
-void ProfileImportThread::NotifyItemStarted(ImportItem item) {
+void ProfileImportThread::NotifyItemStarted(importer::ImportItem item) {
Send(new ProfileImportProcessHostMsg_ImportItem_Started(item));
}
-void ProfileImportThread::NotifyItemEnded(ImportItem item) {
+void ProfileImportThread::NotifyItemEnded(importer::ImportItem item) {
Send(new ProfileImportProcessHostMsg_ImportItem_Finished(item));
}