OLD | NEW |
1 // Copyright (c) 2010 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2010 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 #import <Cocoa/Cocoa.h> | 5 #import <Cocoa/Cocoa.h> |
6 | 6 |
7 #include <string> | 7 #include <string> |
8 | 8 |
9 #include "app/l10n_util_mac.h" | 9 #include "app/l10n_util_mac.h" |
10 #include "app/resource_bundle.h" | 10 #include "app/resource_bundle.h" |
(...skipping 31 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
42 UTF8ToUTF16(extension->name()))]; | 42 UTF8ToUTF16(extension->name()))]; |
43 [alert setAlertStyle:NSWarningAlertStyle]; | 43 [alert setAlertStyle:NSWarningAlertStyle]; |
44 [alert setIcon:gfx::SkBitmapToNSImage(*icon)]; | 44 [alert setIcon:gfx::SkBitmapToNSImage(*icon)]; |
45 | 45 |
46 if ([alert runModal] == NSAlertFirstButtonReturn) { | 46 if ([alert runModal] == NSAlertFirstButtonReturn) { |
47 delegate->InstallUIProceed(); | 47 delegate->InstallUIProceed(); |
48 } else { | 48 } else { |
49 delegate->InstallUIAbort(); | 49 delegate->InstallUIAbort(); |
50 } | 50 } |
51 } | 51 } |
OLD | NEW |