Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(3238)

Unified Diff: chrome/browser/ui/cocoa/importer_lock_dialog.mm

Issue 6371002: [Mac] Organize all import files into chrome/browser/ui/cocoa/importer/.... (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src/
Patch Set: Created 9 years, 11 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
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));
- }
-}
« no previous file with comments | « chrome/browser/ui/cocoa/importer_lock_dialog.h ('k') | chrome/browser/ui/cocoa/options/preferences_window_controller.mm » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698