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_lock_dialog.h" | 10 #include "chrome/browser/importer/importer_lock_dialog.h" |
(...skipping 68 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
79 ui::DialogButton button) const { | 79 ui::DialogButton button) const { |
80 return l10n_util::GetStringUTF16((button == ui::DIALOG_BUTTON_OK) ? | 80 return l10n_util::GetStringUTF16((button == ui::DIALOG_BUTTON_OK) ? |
81 IDS_IMPORTER_LOCK_OK : IDS_IMPORTER_LOCK_CANCEL); | 81 IDS_IMPORTER_LOCK_OK : IDS_IMPORTER_LOCK_CANCEL); |
82 } | 82 } |
83 | 83 |
84 string16 ImportLockDialogView::GetWindowTitle() const { | 84 string16 ImportLockDialogView::GetWindowTitle() const { |
85 return l10n_util::GetStringUTF16(IDS_IMPORTER_LOCK_TITLE); | 85 return l10n_util::GetStringUTF16(IDS_IMPORTER_LOCK_TITLE); |
86 } | 86 } |
87 | 87 |
88 bool ImportLockDialogView::Accept() { | 88 bool ImportLockDialogView::Accept() { |
89 MessageLoop::current()->PostTask(FROM_HERE, | 89 base::MessageLoop::current()->PostTask(FROM_HERE, |
90 base::Bind(callback_, true)); | 90 base::Bind(callback_, true)); |
91 return true; | 91 return true; |
92 } | 92 } |
93 | 93 |
94 bool ImportLockDialogView::Cancel() { | 94 bool ImportLockDialogView::Cancel() { |
95 MessageLoop::current()->PostTask(FROM_HERE, | 95 base::MessageLoop::current()->PostTask(FROM_HERE, |
96 base::Bind(callback_, false)); | 96 base::Bind(callback_, false)); |
97 return true; | 97 return true; |
98 } | 98 } |
OLD | NEW |