OLD | NEW |
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/external_process_importer_host.h" | 5 #include "chrome/browser/importer/external_process_importer_host.h" |
6 | 6 |
7 #include "chrome/browser/bookmarks/bookmark_model.h" | 7 #include "chrome/browser/bookmarks/bookmark_model.h" |
8 #include "chrome/browser/importer/external_process_importer_client.h" | 8 #include "chrome/browser/importer/external_process_importer_client.h" |
9 #include "chrome/browser/importer/importer_type.h" | 9 #include "chrome/browser/importer/importer_creator.h" |
10 #include "chrome/browser/importer/in_process_importer_bridge.h" | 10 #include "chrome/browser/importer/in_process_importer_bridge.h" |
11 | 11 |
12 ExternalProcessImporterHost::ExternalProcessImporterHost() | 12 ExternalProcessImporterHost::ExternalProcessImporterHost() |
13 : client_(NULL), | 13 : client_(NULL), |
14 source_profile_(NULL), | 14 source_profile_(NULL), |
15 items_(0), | 15 items_(0), |
16 cancelled_(false), | 16 cancelled_(false), |
17 import_process_launched_(false) { | 17 import_process_launched_(false) { |
18 } | 18 } |
19 | 19 |
(...skipping 51 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
71 | 71 |
72 void ExternalProcessImporterHost::Loaded(BookmarkModel* model, | 72 void ExternalProcessImporterHost::Loaded(BookmarkModel* model, |
73 bool ids_reassigned) { | 73 bool ids_reassigned) { |
74 DCHECK(model->loaded()); | 74 DCHECK(model->loaded()); |
75 model->RemoveObserver(this); | 75 model->RemoveObserver(this); |
76 waiting_for_bookmarkbar_model_ = false; | 76 waiting_for_bookmarkbar_model_ = false; |
77 installed_bookmark_observer_ = false; | 77 installed_bookmark_observer_ = false; |
78 | 78 |
79 InvokeTaskIfDone(); | 79 InvokeTaskIfDone(); |
80 } | 80 } |
OLD | NEW |