summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorjeremy@chromium.org <jeremy@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2010-01-26 09:59:37 +0000
committerjeremy@chromium.org <jeremy@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2010-01-26 09:59:37 +0000
commit1677229632b3e4410030e280f637c7d7d5c5ca31 (patch)
tree12b0745fc6b81c25f9efc4a0b7269090dad8b763
parent10f9436f16c972adaee0e4d9f8e4fe40a91de843 (diff)
downloadchromium_src-1677229632b3e4410030e280f637c7d7d5c5ca31.zip
chromium_src-1677229632b3e4410030e280f637c7d7d5c5ca31.tar.gz
chromium_src-1677229632b3e4410030e280f637c7d7d5c5ca31.tar.bz2
Enable "Import Settings" button in preferences dialog.
BUG=29819 TEST=Open settings dialog, go to "Personal Stuff" Tab, Import Data... button should function Review URL: http://codereview.chromium.org/555065 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@37101 0039d316-1c4b-4281-b951-d872f2087c98
-rw-r--r--chrome/app/nibs/Preferences.xib14
-rw-r--r--chrome/browser/cocoa/preferences_window_controller.mm8
2 files changed, 18 insertions, 4 deletions
diff --git a/chrome/app/nibs/Preferences.xib b/chrome/app/nibs/Preferences.xib
index e84dab9..462ae80 100644
--- a/chrome/app/nibs/Preferences.xib
+++ b/chrome/app/nibs/Preferences.xib
@@ -2,8 +2,8 @@
<archive type="com.apple.InterfaceBuilder3.Cocoa.XIB" version="7.03">
<data>
<int key="IBDocument.SystemTarget">1050</int>
- <string key="IBDocument.SystemVersion">9L30</string>
- <string key="IBDocument.InterfaceBuilderVersion">680</string>
+ <string key="IBDocument.SystemVersion">9L31a</string>
+ <string key="IBDocument.InterfaceBuilderVersion">677</string>
<string key="IBDocument.AppKitVersion">949.54</string>
<string key="IBDocument.HIToolboxVersion">353.00</string>
<object class="NSMutableArray" key="IBDocument.EditedObjectIDs">
@@ -2059,7 +2059,7 @@ AAMAAAABAAEAAAFTAAMAAAAEAAAFwgAAAAAACAAIAAgACAABAAEAAQABA</bytes>
<reference key="NSSuperview" ref="393583039"/>
<bool key="NSEnabled">YES</bool>
<object class="NSButtonCell" key="NSCell" id="325720834">
- <int key="NSCellFlags">604110336</int>
+ <int key="NSCellFlags">67239424</int>
<int key="NSCellFlags2">134217728</int>
<string key="NSContents">^IDS_OPTIONS_IMPORT_DATA_BUTTON</string>
<reference key="NSSupport" ref="445696277"/>
@@ -4974,6 +4974,10 @@ AAMAAAABAAEAAAFTAAMAAAAEAAAFwgAAAAAACAAIAAgACAABAAEAAQABA</bytes>
<string>345.IBPluginDependency</string>
<string>346.IBPluginDependency</string>
<string>347.IBPluginDependency</string>
+ <string>347.IBViewIntegration.shadowBlurRadius</string>
+ <string>347.IBViewIntegration.shadowColor</string>
+ <string>347.IBViewIntegration.shadowOffsetHeight</string>
+ <string>347.IBViewIntegration.shadowOffsetWidth</string>
<string>348.IBPluginDependency</string>
<string>349.IBPluginDependency</string>
<string>35.IBPluginDependency</string>
@@ -5160,6 +5164,10 @@ AAMAAAABAAEAAAFTAAMAAAAEAAAFwgAAAAAACAAIAAgACAABAAEAAQABA</bytes>
<string>com.apple.InterfaceBuilder.CocoaPlugin</string>
<string>com.apple.InterfaceBuilder.CocoaPlugin</string>
<string>com.apple.InterfaceBuilder.CocoaPlugin</string>
+ <real value="0.000000e+00"/>
+ <reference ref="28651200"/>
+ <real value="0.000000e+00"/>
+ <real value="0.000000e+00"/>
<string>com.apple.InterfaceBuilder.CocoaPlugin</string>
<string>com.apple.InterfaceBuilder.CocoaPlugin</string>
<string>com.apple.InterfaceBuilder.CocoaPlugin</string>
diff --git a/chrome/browser/cocoa/preferences_window_controller.mm b/chrome/browser/cocoa/preferences_window_controller.mm
index c4ad9ac..19ad0f2 100644
--- a/chrome/browser/cocoa/preferences_window_controller.mm
+++ b/chrome/browser/cocoa/preferences_window_controller.mm
@@ -19,6 +19,7 @@
#import "chrome/browser/cocoa/cookies_window_controller.h"
#import "chrome/browser/cocoa/custom_home_pages_model.h"
#import "chrome/browser/cocoa/font_language_settings_controller.h"
+#import "chrome/browser/cocoa/import_settings_dialog.h"
#import "chrome/browser/cocoa/keyword_editor_cocoa_controller.h"
#import "chrome/browser/cocoa/search_engine_list_model.h"
#include "chrome/browser/extensions/extensions_service.h"
@@ -1150,7 +1151,12 @@ const int kDisabledIndex = 1;
// Called to import data from other browsers (Safari, Firefox, etc).
- (IBAction)importData:(id)sender {
- NOTIMPLEMENTED();
+ UserMetrics::RecordAction("Import_ShowDlg", profile_);
+
+ // Note that the dialog controller takes care of cleaning itself up
+ // upon dismissal so auto-scoping here is not necessary.
+ [[[ImportSettingsDialogController alloc]
+ initWithProfile:profile_ parentWindow:nil] runModalDialog];
}
// Called to clear user's browsing data. This puts up an application-modal