| OLD | NEW |
| 1 // Copyright (c) 2009 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2011 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/gtk/import_lock_dialog_gtk.h" | 5 #include "chrome/browser/gtk/import_lock_dialog_gtk.h" |
| 6 | 6 |
| 7 #include "app/l10n_util.h" | 7 #include "app/l10n_util.h" |
| 8 #include "base/message_loop.h" | 8 #include "base/message_loop.h" |
| 9 #include "chrome/browser/gtk/gtk_util.h" | 9 #include "chrome/browser/gtk/gtk_util.h" |
| 10 #include "chrome/browser/importer/importer.h" | 10 #include "chrome/browser/importer/importer.h" |
| 11 #include "grit/chromium_strings.h" | 11 #include "grit/chromium_strings.h" |
| (...skipping 39 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 51 if (response == GTK_RESPONSE_ACCEPT) { | 51 if (response == GTK_RESPONSE_ACCEPT) { |
| 52 MessageLoop::current()->PostTask(FROM_HERE, NewRunnableMethod( | 52 MessageLoop::current()->PostTask(FROM_HERE, NewRunnableMethod( |
| 53 importer_host_.get(), &ImporterHost::OnLockViewEnd, true)); | 53 importer_host_.get(), &ImporterHost::OnLockViewEnd, true)); |
| 54 } else { | 54 } else { |
| 55 MessageLoop::current()->PostTask(FROM_HERE, NewRunnableMethod( | 55 MessageLoop::current()->PostTask(FROM_HERE, NewRunnableMethod( |
| 56 importer_host_.get(), &ImporterHost::OnLockViewEnd, false)); | 56 importer_host_.get(), &ImporterHost::OnLockViewEnd, false)); |
| 57 } | 57 } |
| 58 gtk_widget_destroy(dialog_); | 58 gtk_widget_destroy(dialog_); |
| 59 delete this; | 59 delete this; |
| 60 } | 60 } |
| OLD | NEW |