diff options
author | jeremy@chromium.org <jeremy@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2009-09-25 17:13:41 +0000 |
---|---|---|
committer | jeremy@chromium.org <jeremy@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2009-09-25 17:13:41 +0000 |
commit | de004cba3d752c7e5ab3eb6b45536c0879e6764a (patch) | |
tree | b8792a4dee668e0cb8c96f9c7a1bada047198ff3 /chrome/browser/cocoa | |
parent | 34ac70504d7090a9689c78fbcadd1a1224fc9cdd (diff) | |
download | chromium_src-de004cba3d752c7e5ab3eb6b45536c0879e6764a.zip chromium_src-de004cba3d752c7e5ab3eb6b45536c0879e6764a.tar.gz chromium_src-de004cba3d752c7e5ab3eb6b45536c0879e6764a.tar.bz2 |
OS X First run dialog: hide import option of nothing to import from.
* Modify the Mac First Run dialog so that if the system in question doesn't have any browser profiles to import from, we don't display the option.
* Modify SafariImporter to only be enabled if the current user's account actually has a profile attached to it.
Review URL: http://codereview.chromium.org/218039
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@27200 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'chrome/browser/cocoa')
-rw-r--r-- | chrome/browser/cocoa/first_run_dialog.h | 2 | ||||
-rw-r--r-- | chrome/browser/cocoa/first_run_dialog.mm | 1 |
2 files changed, 3 insertions, 0 deletions
diff --git a/chrome/browser/cocoa/first_run_dialog.h b/chrome/browser/cocoa/first_run_dialog.h index 0b3f07a..08a184b 100644 --- a/chrome/browser/cocoa/first_run_dialog.h +++ b/chrome/browser/cocoa/first_run_dialog.h @@ -18,6 +18,7 @@ BOOL usage_stats_checkbox_hidden_; int browser_import_selected_index_; NSArray* browser_import_list_; + BOOL browser_import_list_hidden_; } // Called when the "Start Google Chrome" button is pressed. @@ -36,6 +37,7 @@ @property(assign) BOOL importBookmarks; @property(assign) int browserImportSelectedIndex; @property(retain) NSArray* browserImportList; +@property(assign) BOOL browserImportListHidden; @end diff --git a/chrome/browser/cocoa/first_run_dialog.mm b/chrome/browser/cocoa/first_run_dialog.mm index 4fe80bc..e1daf6d 100644 --- a/chrome/browser/cocoa/first_run_dialog.mm +++ b/chrome/browser/cocoa/first_run_dialog.mm @@ -16,6 +16,7 @@ @synthesize importBookmarks = import_bookmarks_; @synthesize browserImportSelectedIndex = browser_import_selected_index_; @synthesize browserImportList = browser_import_list_; +@synthesize browserImportListHidden = browser_import_list_hidden_; - (id)init { self = [super initWithWindowNibName:@"FirstRunDialog"]; |