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 "chrome/browser/ui/cocoa/location_bar/instant_opt_in_controller.h" | 5 #import "chrome/browser/ui/cocoa/location_bar/instant_opt_in_controller.h" |
6 | 6 |
7 #include "base/mac_util.h" | 7 #include "base/mac/mac_util.h" |
8 | 8 |
9 @implementation InstantOptInController | 9 @implementation InstantOptInController |
10 | 10 |
11 - (id)initWithDelegate:(InstantOptInControllerDelegate*)delegate { | 11 - (id)initWithDelegate:(InstantOptInControllerDelegate*)delegate { |
12 if ((self = [super initWithNibName:@"InstantOptIn" | 12 if ((self = [super initWithNibName:@"InstantOptIn" |
13 bundle:mac_util::MainAppBundle()])) { | 13 bundle:base::mac::MainAppBundle()])) { |
14 delegate_ = delegate; | 14 delegate_ = delegate; |
15 } | 15 } |
16 return self; | 16 return self; |
17 } | 17 } |
18 | 18 |
19 - (void)awakeFromNib { | 19 - (void)awakeFromNib { |
20 // TODO(rohitrao): Translate and resize strings. | 20 // TODO(rohitrao): Translate and resize strings. |
21 } | 21 } |
22 | 22 |
23 - (IBAction)ok:(id)sender { | 23 - (IBAction)ok:(id)sender { |
24 delegate_->UserPressedOptIn(true); | 24 delegate_->UserPressedOptIn(true); |
25 } | 25 } |
26 | 26 |
27 - (IBAction)cancel:(id)sender { | 27 - (IBAction)cancel:(id)sender { |
28 delegate_->UserPressedOptIn(false); | 28 delegate_->UserPressedOptIn(false); |
29 } | 29 } |
30 | 30 |
31 @end | 31 @end |
OLD | NEW |