OLD | NEW |
1 // Copyright (c) 2010 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2010 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/dom_ui/options/import_data_handler.h" | 5 #include "chrome/browser/dom_ui/options/import_data_handler.h" |
6 | 6 |
7 #include "app/l10n_util.h" | 7 #include "app/l10n_util.h" |
8 #include "base/basictypes.h" | 8 #include "base/basictypes.h" |
9 #include "base/callback.h" | 9 #include "base/callback.h" |
10 #include "base/scoped_ptr.h" | 10 #include "base/scoped_ptr.h" |
11 #include "base/string16.h" | 11 #include "base/string16.h" |
12 #include "base/string_number_conversions.h" | 12 #include "base/string_number_conversions.h" |
13 #include "base/string_util.h" | 13 #include "base/string_util.h" |
14 #include "base/thread_restrictions.h" | 14 #include "base/thread_restrictions.h" |
15 #include "base/utf_string_conversions.h" | 15 #include "base/utf_string_conversions.h" |
16 #include "base/values.h" | 16 #include "base/values.h" |
17 #include "chrome/browser/prefs/pref_service.h" | 17 #include "chrome/browser/prefs/pref_service.h" |
18 #include "chrome/browser/profile.h" | 18 #include "chrome/browser/profiles/profile.h" |
19 #include "grit/chromium_strings.h" | 19 #include "grit/chromium_strings.h" |
20 #include "grit/generated_resources.h" | 20 #include "grit/generated_resources.h" |
21 #include "chrome/browser/importer/importer_data_types.h" | 21 #include "chrome/browser/importer/importer_data_types.h" |
22 | 22 |
23 ImportDataHandler::ImportDataHandler() : importer_host_(NULL) { | 23 ImportDataHandler::ImportDataHandler() : importer_host_(NULL) { |
24 } | 24 } |
25 | 25 |
26 ImportDataHandler::~ImportDataHandler() { | 26 ImportDataHandler::~ImportDataHandler() { |
27 if (importer_host_) | 27 if (importer_host_) |
28 importer_host_->SetObserver(NULL); | 28 importer_host_->SetObserver(NULL); |
(...skipping 139 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
168 void ImportDataHandler::ImportItemEnded(importer::ImportItem item) { | 168 void ImportDataHandler::ImportItemEnded(importer::ImportItem item) { |
169 // TODO(csilv): show progress detail in the web view. | 169 // TODO(csilv): show progress detail in the web view. |
170 } | 170 } |
171 | 171 |
172 void ImportDataHandler::ImportEnded() { | 172 void ImportDataHandler::ImportEnded() { |
173 importer_host_->SetObserver(NULL); | 173 importer_host_->SetObserver(NULL); |
174 importer_host_ = NULL; | 174 importer_host_ = NULL; |
175 | 175 |
176 dom_ui_->CallJavascriptFunction(L"ImportDataOverlay.dismiss"); | 176 dom_ui_->CallJavascriptFunction(L"ImportDataOverlay.dismiss"); |
177 } | 177 } |
OLD | NEW |