| 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/ui/webui/options/import_data_handler.h" | 5 #include "chrome/browser/ui/webui/options/import_data_handler.h" |
| 6 | 6 |
| 7 #include <string> | 7 #include <string> |
| 8 | 8 |
| 9 #include "base/basictypes.h" | 9 #include "base/basictypes.h" |
| 10 #include "base/bind.h" | 10 #include "base/bind.h" |
| (...skipping 27 matching lines...) Expand all Loading... |
| 38 import_did_succeed_(false) { | 38 import_did_succeed_(false) { |
| 39 DCHECK_CURRENTLY_ON(BrowserThread::UI); | 39 DCHECK_CURRENTLY_ON(BrowserThread::UI); |
| 40 } | 40 } |
| 41 | 41 |
| 42 ImportDataHandler::~ImportDataHandler() { | 42 ImportDataHandler::~ImportDataHandler() { |
| 43 DCHECK_CURRENTLY_ON(BrowserThread::UI); | 43 DCHECK_CURRENTLY_ON(BrowserThread::UI); |
| 44 | 44 |
| 45 if (importer_host_) | 45 if (importer_host_) |
| 46 importer_host_->set_observer(NULL); | 46 importer_host_->set_observer(NULL); |
| 47 | 47 |
| 48 if (select_file_dialog_) | 48 if (select_file_dialog_.get()) |
| 49 select_file_dialog_->ListenerDestroyed(); | 49 select_file_dialog_->ListenerDestroyed(); |
| 50 } | 50 } |
| 51 | 51 |
| 52 void ImportDataHandler::GetLocalizedValues( | 52 void ImportDataHandler::GetLocalizedValues( |
| 53 base::DictionaryValue* localized_strings) { | 53 base::DictionaryValue* localized_strings) { |
| 54 DCHECK_CURRENTLY_ON(BrowserThread::UI); | 54 DCHECK_CURRENTLY_ON(BrowserThread::UI); |
| 55 DCHECK(localized_strings); | 55 DCHECK(localized_strings); |
| 56 | 56 |
| 57 static OptionsStringResource resources[] = { | 57 static OptionsStringResource resources[] = { |
| 58 { "importFromLabel", IDS_IMPORT_FROM_LABEL }, | 58 { "importFromLabel", IDS_IMPORT_FROM_LABEL }, |
| (...skipping 205 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 264 base::string16(), | 264 base::string16(), |
| 265 base::FilePath(), | 265 base::FilePath(), |
| 266 &file_type_info, | 266 &file_type_info, |
| 267 0, | 267 0, |
| 268 base::FilePath::StringType(), | 268 base::FilePath::StringType(), |
| 269 browser->window()->GetNativeWindow(), | 269 browser->window()->GetNativeWindow(), |
| 270 NULL); | 270 NULL); |
| 271 } | 271 } |
| 272 | 272 |
| 273 } // namespace options | 273 } // namespace options |
| OLD | NEW |