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

Side by Side Diff: chrome/utility/profile_import_handler.cc

Issue 18555005: Move importer messages to common (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 7 years, 5 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/importer/profile_import_process_messages.cc ('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')
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/utility/profile_import_handler.h" 5 #include "chrome/utility/profile_import_handler.h"
6 6
7 #include "base/bind.h" 7 #include "base/bind.h"
8 #include "base/memory/ref_counted.h" 8 #include "base/memory/ref_counted.h"
9 #include "base/message_loop/message_loop_proxy.h" 9 #include "base/message_loop/message_loop_proxy.h"
10 #include "base/threading/thread.h" 10 #include "base/threading/thread.h"
11 #include "chrome/browser/importer/external_process_importer_bridge.h" 11 #include "chrome/browser/importer/external_process_importer_bridge.h"
12 #include "chrome/browser/importer/importer.h" 12 #include "chrome/browser/importer/importer.h"
13 #include "chrome/browser/importer/profile_import_process_messages.h" 13 #include "chrome/browser/importer/importer_creator.h"
14 #include "chrome/common/importer/profile_import_process_messages.h"
14 #include "content/public/utility/utility_thread.h" 15 #include "content/public/utility/utility_thread.h"
15 16
16 namespace chrome { 17 namespace chrome {
17 18
18 ProfileImportHandler::ProfileImportHandler() : items_to_import_(0) {} 19 ProfileImportHandler::ProfileImportHandler() : items_to_import_(0) {}
19 20
20 ProfileImportHandler::~ProfileImportHandler() {} 21 ProfileImportHandler::~ProfileImportHandler() {}
21 22
22 bool ProfileImportHandler::OnMessageReceived(const IPC::Message& message) { 23 bool ProfileImportHandler::OnMessageReceived(const IPC::Message& message) {
23 bool handled = true; 24 bool handled = true;
(...skipping 58 matching lines...) Expand 10 before | Expand all | Expand 10 after
82 import_thread_.reset(); 83 import_thread_.reset();
83 content::UtilityThread::Get()->ReleaseProcessIfNeeded(); 84 content::UtilityThread::Get()->ReleaseProcessIfNeeded();
84 } 85 }
85 86
86 // static 87 // static
87 bool ProfileImportHandler::Send(IPC::Message* message) { 88 bool ProfileImportHandler::Send(IPC::Message* message) {
88 return content::UtilityThread::Get()->Send(message); 89 return content::UtilityThread::Get()->Send(message);
89 } 90 }
90 91
91 } // namespace chrome 92 } // namespace chrome
OLDNEW
« no previous file with comments | « chrome/common/importer/profile_import_process_messages.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698