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

Unified Diff: chrome/installer/mac/app/InstallerWindowController.m

Issue 2270083002: Added in switches for the Mac Installer to send preferences to Chrome (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@cl5_review
Patch Set: Created 4 years, 4 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/installer/mac/app/InstallerWindowController.m
diff --git a/chrome/installer/mac/app/InstallerWindowController.m b/chrome/installer/mac/app/InstallerWindowController.m
index c2cb2d386018b2a096ceb88c66fe460a72bfa5c8..a929482721ab4a6f6a7eac0f6e0d214cab66b89a 100644
--- a/chrome/installer/mac/app/InstallerWindowController.m
+++ b/chrome/installer/mac/app/InstallerWindowController.m
@@ -7,6 +7,7 @@
#import "AppDelegate.h"
@interface InstallerWindowController () {
+ // TODO: add in a "Launch" button
NSButton* importButton_;
NSButton* defaultBrowserButton_;
NSButton* optInButton_;
@@ -120,4 +121,12 @@
}
}
+- (BOOL)isUserMetricsChecked {
+ return optInButton_.state == NSOnState;
+}
+
+- (BOOL)isDefaultBrowserChecked {
+ return defaultBrowserButton_.state == NSOnState;
+}
+
@end
« chrome/app/chrome_main_delegate.cc ('K') | « chrome/installer/mac/app/InstallerWindowController.h ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698