| OLD | NEW |
| 1 // Copyright 2016 The Chromium Authors. All rights reserved. | 1 // Copyright 2016 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 "InstallerWindowController.h" | 5 #import "InstallerWindowController.h" |
| 6 | 6 |
| 7 #import "AppDelegate.h" | 7 #import "AppDelegate.h" |
| 8 | 8 |
| 9 @interface InstallerWindowController () { | 9 @interface InstallerWindowController () { |
| 10 NSButton* importButton_; | 10 NSButton* importButton_; |
| (...skipping 120 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 131 | 131 |
| 132 - (void)enableLaunchButton { | 132 - (void)enableLaunchButton { |
| 133 [launchButton_ setEnabled:YES]; | 133 [launchButton_ setEnabled:YES]; |
| 134 } | 134 } |
| 135 | 135 |
| 136 - (void)launchButtonClicked { | 136 - (void)launchButtonClicked { |
| 137 // TODO: Launch the app and start ejecting disk. | 137 // TODO: Launch the app and start ejecting disk. |
| 138 [NSApp terminate:nil]; | 138 [NSApp terminate:nil]; |
| 139 } | 139 } |
| 140 | 140 |
| 141 - (BOOL)isUserMetricsChecked { |
| 142 return optInButton_.state == NSOnState; |
| 143 } |
| 144 |
| 145 - (BOOL)isDefaultBrowserChecked { |
| 146 return defaultBrowserButton_.state == NSOnState; |
| 147 } |
| 148 |
| 141 @end | 149 @end |
| OLD | NEW |