Index: chrome/browser/ui/cocoa/importer_lock_dialog.mm |
=================================================================== |
--- chrome/browser/ui/cocoa/importer_lock_dialog.mm (revision 71671) |
+++ chrome/browser/ui/cocoa/importer_lock_dialog.mm (working copy) |
@@ -1,34 +0,0 @@ |
-// Copyright (c) 2009 The Chromium Authors. All rights reserved. |
-// Use of this source code is governed by a BSD-style license that can be |
-// found in the LICENSE file. |
- |
-#import <Cocoa/Cocoa.h> |
- |
-#import "importer_lock_dialog.h" |
- |
-#include "app/l10n_util_mac.h" |
-#include "base/message_loop.h" |
-#include "base/scoped_nsobject.h" |
-#include "chrome/browser/importer/importer.h" |
-#include "grit/chromium_strings.h" |
-#include "grit/generated_resources.h" |
- |
-void ImportLockDialogCocoa::ShowWarning(ImporterHost* importer) { |
- scoped_nsobject<NSAlert> lock_alert([[NSAlert alloc] init]); |
- [lock_alert addButtonWithTitle:l10n_util::GetNSStringWithFixup( |
- IDS_IMPORTER_LOCK_OK)]; |
- [lock_alert addButtonWithTitle:l10n_util::GetNSStringWithFixup( |
- IDS_IMPORTER_LOCK_CANCEL)]; |
- [lock_alert setInformativeText:l10n_util::GetNSStringWithFixup( |
- IDS_IMPORTER_LOCK_TEXT)]; |
- [lock_alert setMessageText:l10n_util::GetNSStringWithFixup( |
- IDS_IMPORTER_LOCK_TITLE)]; |
- |
- if ([lock_alert runModal] == NSAlertFirstButtonReturn) { |
- MessageLoop::current()->PostTask(FROM_HERE, NewRunnableMethod( |
- importer, &ImporterHost::OnLockViewEnd, true)); |
- } else { |
- MessageLoop::current()->PostTask(FROM_HERE, NewRunnableMethod( |
- importer, &ImporterHost::OnLockViewEnd, false)); |
- } |
-} |