| 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/views/importer/import_lock_dialog_view.h" | 5 #include "chrome/browser/ui/views/importer/import_lock_dialog_view.h" |
| 6 | 6 |
| 7 #include "base/bind.h" | 7 #include "base/bind.h" |
| 8 #include "base/message_loop.h" | 8 #include "base/message_loop.h" |
| 9 #include "base/utf_string_conversions.h" | 9 #include "base/utf_string_conversions.h" |
| 10 #include "chrome/browser/importer/importer_host.h" | 10 #include "chrome/browser/importer/importer_host.h" |
| (...skipping 74 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 85 return true; | 85 return true; |
| 86 } | 86 } |
| 87 | 87 |
| 88 bool ImportLockDialogView::Cancel() { | 88 bool ImportLockDialogView::Cancel() { |
| 89 MessageLoop::current()->PostTask( | 89 MessageLoop::current()->PostTask( |
| 90 FROM_HERE, | 90 FROM_HERE, |
| 91 base::Bind(&ImporterHost::OnImportLockDialogEnd, | 91 base::Bind(&ImporterHost::OnImportLockDialogEnd, |
| 92 importer_host_.get(), false)); | 92 importer_host_.get(), false)); |
| 93 return true; | 93 return true; |
| 94 } | 94 } |
| 95 | |
| 96 views::View* ImportLockDialogView::GetContentsView() { | |
| 97 return this; | |
| 98 } | |
| OLD | NEW |