summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authoravi@chromium.org <avi@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2010-10-15 20:03:47 +0000
committeravi@chromium.org <avi@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2010-10-15 20:03:47 +0000
commit31cc1c02c0a93df076ebbecef923e3a63ac34341 (patch)
tree9f912ec494b58726883fe0e8ce57815f7547bf55
parente2ddbc98387020635356b65858ec0bf35966fdc2 (diff)
downloadchromium_src-31cc1c02c0a93df076ebbecef923e3a63ac34341.zip
chromium_src-31cc1c02c0a93df076ebbecef923e3a63ac34341.tar.gz
chromium_src-31cc1c02c0a93df076ebbecef923e3a63ac34341.tar.bz2
Revert 62641 - Remove the dashboard link from the Prefs, since it's now in Clear Browsing Data. Essentially a revert of r52258, though done by hand.
xib: Removed the link from the sync group, removed continuation array, resized everything else to close the gap. BUG=59095 TEST=go into options, find no "go to Google Dashboard" link Review URL: http://codereview.chromium.org/3761005 TBR=avi@chromium.org Review URL: http://codereview.chromium.org/3799004 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@62778 0039d316-1c4b-4281-b951-d872f2087c98
-rw-r--r--chrome/app/nibs/Preferences.xib138
-rw-r--r--chrome/browser/browser.cc6
-rw-r--r--chrome/browser/browser.h1
-rw-r--r--chrome/browser/cocoa/preferences_window_controller.h2
-rw-r--r--chrome/browser/cocoa/preferences_window_controller.mm9
5 files changed, 136 insertions, 20 deletions
diff --git a/chrome/app/nibs/Preferences.xib b/chrome/app/nibs/Preferences.xib
index 3b0c29b..948daf0 100644
--- a/chrome/app/nibs/Preferences.xib
+++ b/chrome/app/nibs/Preferences.xib
@@ -12,11 +12,11 @@
</object>
<object class="NSMutableArray" key="IBDocument.EditedObjectIDs">
<bool key="EncodedWithXMLCoder">YES</bool>
- <integer value="74"/>
- <integer value="482"/>
- <integer value="481"/>
<integer value="692"/>
+ <integer value="482"/>
<integer value="483"/>
+ <integer value="74"/>
+ <integer value="481"/>
</object>
<object class="NSArray" key="IBDocument.PluginDependencies">
<bool key="EncodedWithXMLCoder">YES</bool>
@@ -1823,7 +1823,7 @@ AAMAAAABAAEAAAFTAAMAAAAEAAAFwgAAAAAACAAIAAgACAABAAEAAQABA</bytes>
<object class="NSTextField" id="20640598">
<reference key="NSNextResponder" ref="393583039"/>
<int key="NSvFlags">268</int>
- <string key="NSFrame">{{17, 259}, {126, 60}}</string>
+ <string key="NSFrame">{{17, 279}, {126, 60}}</string>
<reference key="NSSuperview" ref="393583039"/>
<bool key="NSEnabled">YES</bool>
<object class="NSTextFieldCell" key="NSCell" id="101746388">
@@ -2051,7 +2051,7 @@ AAMAAAABAAEAAAFTAAMAAAAEAAAFwgAAAAAACAAIAAgACAABAAEAAQABA</bytes>
<object class="NSButton" id="203729106">
<reference key="NSNextResponder" ref="393583039"/>
<int key="NSvFlags">268</int>
- <string key="NSFrame">{{144, 291}, {184, 32}}</string>
+ <string key="NSFrame">{{144, 311}, {184, 32}}</string>
<reference key="NSSuperview" ref="393583039"/>
<bool key="NSEnabled">YES</bool>
<object class="NSButtonCell" key="NSCell" id="431766699">
@@ -2071,7 +2071,7 @@ AAMAAAABAAEAAAFTAAMAAAAEAAAFwgAAAAAACAAIAAgACAABAAEAAQABA</bytes>
<object class="NSButton" id="175093092">
<reference key="NSNextResponder" ref="393583039"/>
<int key="NSvFlags">268</int>
- <string key="NSFrame">{{389, 291}, {137, 32}}</string>
+ <string key="NSFrame">{{389, 311}, {137, 32}}</string>
<reference key="NSSuperview" ref="393583039"/>
<bool key="NSEnabled">YES</bool>
<object class="NSButtonCell" key="NSCell" id="342125840">
@@ -2139,7 +2139,7 @@ AAMAAAABAAEAAAFTAAMAAAAEAAAFwgAAAAAACAAIAAgACAABAAEAAQABA</bytes>
<object class="NSTextField" id="90260648">
<reference key="NSNextResponder" ref="393583039"/>
<int key="NSvFlags">266</int>
- <string key="NSFrame">{{150, 264}, {373, 28}}</string>
+ <string key="NSFrame">{{150, 284}, {373, 28}}</string>
<reference key="NSSuperview" ref="393583039"/>
<bool key="NSEnabled">YES</bool>
<object class="NSTextFieldCell" key="NSCell" id="123936632">
@@ -2196,7 +2196,7 @@ AAMAAAABAAEAAAFTAAMAAAAEAAAFwgAAAAAACAAIAAgACAABAAEAAQABA</bytes>
<object class="NSButton" id="1022040155">
<reference key="NSNextResponder" ref="393583039"/>
<int key="NSvFlags">268</int>
- <string key="NSFrame">{{150, 245}, {82, 17}}</string>
+ <string key="NSFrame">{{150, 265}, {82, 17}}</string>
<reference key="NSSuperview" ref="393583039"/>
<bool key="NSEnabled">YES</bool>
<object class="NSButtonCell" key="NSCell" id="1047338722">
@@ -2213,6 +2213,26 @@ AAMAAAABAAEAAAFTAAMAAAAEAAAFwgAAAAAACAAIAAgACAABAAEAAQABA</bytes>
<int key="NSPeriodicInterval">25</int>
</object>
</object>
+ <object class="NSButton" id="59469178">
+ <reference key="NSNextResponder" ref="393583039"/>
+ <int key="NSvFlags">268</int>
+ <string key="NSFrame">{{150, 248}, {82, 17}}</string>
+ <reference key="NSSuperview" ref="393583039"/>
+ <bool key="NSEnabled">YES</bool>
+ <object class="NSButtonCell" key="NSCell" id="1071892392">
+ <int key="NSCellFlags">67239424</int>
+ <int key="NSCellFlags2">134217728</int>
+ <string key="NSContents">^IDS_SYNC_PRIVACY_DASHBOARD_LINK_LABEL</string>
+ <reference key="NSSupport" ref="445696277"/>
+ <reference key="NSControlView" ref="59469178"/>
+ <int key="NSButtonFlags">-2038284033</int>
+ <int key="NSButtonFlags2">134</int>
+ <string key="NSAlternateContents"/>
+ <string key="NSKeyEquivalent"/>
+ <int key="NSPeriodicDelay">200</int>
+ <int key="NSPeriodicInterval">25</int>
+ </object>
+ </object>
<object class="NSButton" id="865039969">
<reference key="NSNextResponder" ref="393583039"/>
<int key="NSvFlags">268</int>
@@ -2254,7 +2274,7 @@ AAMAAAABAAEAAAFTAAMAAAAEAAAFwgAAAAAACAAIAAgACAABAAEAAQABA</bytes>
</object>
</object>
</object>
- <string key="NSFrameSize">{540, 339}</string>
+ <string key="NSFrameSize">{540, 359}</string>
<reference key="NSSuperview"/>
<string key="NSClassName">NSView</string>
</object>
@@ -2454,6 +2474,9 @@ AAMAAAABAAEAAAFTAAMAAAAEAAAFwgAAAAAACAAIAAgACAABAAEAAQABA</bytes>
<object class="NSCustomObject" id="938815385">
<string key="NSClassName">GTMUILocalizerAndLayoutTweaker</string>
</object>
+ <object class="NSCustomObject" id="276476617">
+ <string key="NSClassName">GTMIBArray</string>
+ </object>
</object>
<object class="IBObjectContainer" key="IBDocument.Objects">
<object class="NSMutableArray" key="connectionRecords">
@@ -3660,6 +3683,46 @@ AAMAAAABAAEAAAFTAAMAAAAEAAAFwgAAAAAACAAIAAgACAABAAEAAQABA</bytes>
<int key="connectionID">702</int>
</object>
<object class="IBConnectionRecord">
+ <object class="IBOutletConnection" key="connection">
+ <string key="label">privacyDashboardLink_</string>
+ <reference key="source" ref="1001"/>
+ <reference key="destination" ref="59469178"/>
+ </object>
+ <int key="connectionID">705</int>
+ </object>
+ <object class="IBConnectionRecord">
+ <object class="IBOutletConnection" key="connection">
+ <string key="label">object5_</string>
+ <reference key="source" ref="821768455"/>
+ <reference key="destination" ref="276476617"/>
+ </object>
+ <int key="connectionID">709</int>
+ </object>
+ <object class="IBConnectionRecord">
+ <object class="IBOutletConnection" key="connection">
+ <string key="label">object2_</string>
+ <reference key="source" ref="276476617"/>
+ <reference key="destination" ref="59469178"/>
+ </object>
+ <int key="connectionID">710</int>
+ </object>
+ <object class="IBConnectionRecord">
+ <object class="IBOutletConnection" key="connection">
+ <string key="label">object1_</string>
+ <reference key="source" ref="276476617"/>
+ <reference key="destination" ref="1022040155"/>
+ </object>
+ <int key="connectionID">711</int>
+ </object>
+ <object class="IBConnectionRecord">
+ <object class="IBActionConnection" key="connection">
+ <string key="label">showPrivacyDashboard:</string>
+ <reference key="source" ref="1001"/>
+ <reference key="destination" ref="59469178"/>
+ </object>
+ <int key="connectionID">712</int>
+ </object>
+ <object class="IBConnectionRecord">
<object class="IBBindingConnection" key="connection">
<string key="label">enabled: showHomeButtonEnabled</string>
<reference key="source" ref="136601899"/>
@@ -3987,14 +4050,6 @@ AAMAAAABAAEAAAFTAAMAAAAEAAAFwgAAAAAACAAIAAgACAABAAEAAQABA</bytes>
</object>
<int key="connectionID">767</int>
</object>
- <object class="IBConnectionRecord">
- <object class="IBOutletConnection" key="connection">
- <string key="label">object5_</string>
- <reference key="source" ref="821768455"/>
- <reference key="destination" ref="1022040155"/>
- </object>
- <int key="connectionID">768</int>
- </object>
</object>
<object class="IBMutableOrderedSet" key="objectRecords">
<object class="NSArray" key="orderedObjects">
@@ -4404,6 +4459,7 @@ AAMAAAABAAEAAAFTAAMAAAAEAAAFwgAAAAAACAAIAAgACAABAAEAAQABA</bytes>
<reference ref="155299174"/>
<reference ref="921350969"/>
<reference ref="1022040155"/>
+ <reference ref="59469178"/>
</object>
<reference key="parent" ref="0"/>
<string key="objectName">Personal Stuff View</string>
@@ -5270,6 +5326,26 @@ AAMAAAABAAEAAAFTAAMAAAAEAAAFwgAAAAAACAAIAAgACAABAAEAAQABA</bytes>
<reference key="parent" ref="0"/>
</object>
<object class="IBObjectRecord">
+ <int key="objectID">703</int>
+ <reference key="object" ref="59469178"/>
+ <object class="NSMutableArray" key="children">
+ <bool key="EncodedWithXMLCoder">YES</bool>
+ <reference ref="1071892392"/>
+ </object>
+ <reference key="parent" ref="393583039"/>
+ </object>
+ <object class="IBObjectRecord">
+ <int key="objectID">704</int>
+ <reference key="object" ref="1071892392"/>
+ <reference key="parent" ref="59469178"/>
+ </object>
+ <object class="IBObjectRecord">
+ <int key="objectID">708</int>
+ <reference key="object" ref="276476617"/>
+ <reference key="parent" ref="0"/>
+ <string key="objectName">Personal Stuff Sync Group Cont</string>
+ </object>
+ <object class="IBObjectRecord">
<int key="objectID">740</int>
<reference key="object" ref="499998551"/>
<object class="NSMutableArray" key="children">
@@ -5507,6 +5583,10 @@ AAMAAAABAAEAAAFTAAMAAAAEAAAFwgAAAAAACAAIAAgACAABAAEAAQABA</bytes>
<string>696.IBPluginDependency</string>
<string>699.IBPluginDependency</string>
<string>70.IBPluginDependency</string>
+ <string>703.IBPluginDependency</string>
+ <string>704.CustomClassName</string>
+ <string>704.IBPluginDependency</string>
+ <string>708.IBPluginDependency</string>
<string>71.IBPluginDependency</string>
<string>74.IBEditorWindowLastContentRect</string>
<string>74.IBPluginDependency</string>
@@ -5621,7 +5701,7 @@ AAMAAAABAAEAAAFTAAMAAAAEAAAFwgAAAAAACAAIAAgACAABAAEAAQABA</bytes>
<object class="NSMutableArray">
<bool key="EncodedWithXMLCoder">YES</bool>
</object>
- <string>{{329, 517}, {540, 339}}</string>
+ <string>{{329, 497}, {540, 359}}</string>
<string>com.apple.InterfaceBuilder.CocoaPlugin</string>
<string>{{278, 393}, {540, 463}}</string>
<string>com.apple.InterfaceBuilder.CocoaPlugin</string>
@@ -5709,7 +5789,11 @@ AAMAAAABAAEAAAFTAAMAAAAEAAAFwgAAAAAACAAIAAgACAABAAEAAQABA</bytes>
<string>com.apple.InterfaceBuilder.CocoaPlugin</string>
<string>com.apple.InterfaceBuilder.CocoaPlugin</string>
<string>com.apple.InterfaceBuilder.CocoaPlugin</string>
- <string>{{389, 108}, {443, 849}}</string>
+ <string>HyperlinkButtonCell</string>
+ <string>com.apple.InterfaceBuilder.CocoaPlugin</string>
+ <string>com.apple.InterfaceBuilder.CocoaPlugin</string>
+ <string>com.apple.InterfaceBuilder.CocoaPlugin</string>
+ <string>{{389, 7}, {443, 849}}</string>
<string>com.apple.InterfaceBuilder.CocoaPlugin</string>
<string>HyperlinkButtonCell</string>
<string>com.apple.InterfaceBuilder.CocoaPlugin</string>
@@ -5746,7 +5830,7 @@ AAMAAAABAAEAAAFTAAMAAAAEAAAFwgAAAAAACAAIAAgACAABAAEAAQABA</bytes>
</object>
</object>
<nil key="sourceID"/>
- <int key="maxID">768</int>
+ <int key="maxID">767</int>
</object>
<object class="IBClassDescriber" key="IBDocument.Classes">
<object class="NSMutableArray" key="referencedPartialClassDescriptions">
@@ -6065,6 +6149,7 @@ AAMAAAABAAEAAAFTAAMAAAAEAAAFwgAAAAAACAAIAAgACAABAAEAAQABA</bytes>
<string>showCertificates:</string>
<string>showContentSettings:</string>
<string>showPreferences:</string>
+ <string>showPrivacyDashboard:</string>
<string>showSavedPasswords:</string>
<string>themesGallery:</string>
<string>toolbarButtonSelected:</string>
@@ -6097,6 +6182,7 @@ AAMAAAABAAEAAAFTAAMAAAAEAAAFwgAAAAAACAAIAAgACAABAAEAAQABA</bytes>
<string>id</string>
<string>id</string>
<string>id</string>
+ <string>id</string>
</object>
</object>
<object class="NSMutableDictionary" key="actionInfosByName">
@@ -6124,6 +6210,7 @@ AAMAAAABAAEAAAFTAAMAAAAEAAAFwgAAAAAACAAIAAgACAABAAEAAQABA</bytes>
<string>showCertificates:</string>
<string>showContentSettings:</string>
<string>showPreferences:</string>
+ <string>showPrivacyDashboard:</string>
<string>showSavedPasswords:</string>
<string>themesGallery:</string>
<string>toolbarButtonSelected:</string>
@@ -6216,6 +6303,10 @@ AAMAAAABAAEAAAFTAAMAAAAEAAAFwgAAAAAACAAIAAgACAABAAEAAQABA</bytes>
<string key="candidateClassName">id</string>
</object>
<object class="IBActionInfo">
+ <string key="name">showPrivacyDashboard:</string>
+ <string key="candidateClassName">id</string>
+ </object>
+ <object class="IBActionInfo">
<string key="name">showSavedPasswords:</string>
<string key="candidateClassName">id</string>
</object>
@@ -6262,6 +6353,7 @@ AAMAAAABAAEAAAFTAAMAAAAEAAAFwgAAAAAACAAIAAgACAABAAEAAQABA</bytes>
<string>personalStuffGroupSync_</string>
<string>personalStuffGroupThemes_</string>
<string>personalStuffView_</string>
+ <string>privacyDashboardLink_</string>
<string>resetFileHandlersButton_</string>
<string>syncButton_</string>
<string>syncCustomizeButton_</string>
@@ -6303,6 +6395,7 @@ AAMAAAABAAEAAAFTAAMAAAAEAAAFwgAAAAAACAAIAAgACAABAAEAAQABA</bytes>
<string>NSButton</string>
<string>NSButton</string>
<string>NSButton</string>
+ <string>NSButton</string>
<string>NSTextField</string>
<string>NSToolbar</string>
<string>NSView</string>
@@ -6339,6 +6432,7 @@ AAMAAAABAAEAAAFTAAMAAAAEAAAFwgAAAAAACAAIAAgACAABAAEAAQABA</bytes>
<string>personalStuffGroupSync_</string>
<string>personalStuffGroupThemes_</string>
<string>personalStuffView_</string>
+ <string>privacyDashboardLink_</string>
<string>resetFileHandlersButton_</string>
<string>syncButton_</string>
<string>syncCustomizeButton_</string>
@@ -6452,6 +6546,10 @@ AAMAAAABAAEAAAFTAAMAAAAEAAAFwgAAAAAACAAIAAgACAABAAEAAQABA</bytes>
<string key="candidateClassName">NSView</string>
</object>
<object class="IBToOneOutletInfo">
+ <string key="name">privacyDashboardLink_</string>
+ <string key="candidateClassName">NSButton</string>
+ </object>
+ <object class="IBToOneOutletInfo">
<string key="name">resetFileHandlersButton_</string>
<string key="candidateClassName">NSButton</string>
</object>
diff --git a/chrome/browser/browser.cc b/chrome/browser/browser.cc
index 0c7bacd..6cb7321 100644
--- a/chrome/browser/browser.cc
+++ b/chrome/browser/browser.cc
@@ -1920,6 +1920,12 @@ void Browser::OpenThemeGalleryTabAndActivate() {
window_->Activate();
}
+void Browser::OpenPrivacyDashboardTabAndActivate() {
+ OpenURL(GURL(l10n_util::GetStringUTF8(IDS_PRIVACY_DASHBOARD_URL)),
+ GURL(), NEW_FOREGROUND_TAB, PageTransition::LINK);
+ window_->Activate();
+}
+
void Browser::OpenAutoFillHelpTabAndActivate() {
OpenURL(GURL(l10n_util::GetStringUTF8(IDS_AUTOFILL_HELP_URL)),
GURL(), NEW_FOREGROUND_TAB, PageTransition::LINK);
diff --git a/chrome/browser/browser.h b/chrome/browser/browser.h
index 31da162..0457ae7 100644
--- a/chrome/browser/browser.h
+++ b/chrome/browser/browser.h
@@ -566,6 +566,7 @@ class Browser : public TabHandlerDelegate,
// Used by the "Get themes" link in the options dialog.
void OpenThemeGalleryTabAndActivate();
void OpenAutoFillHelpTabAndActivate();
+ void OpenPrivacyDashboardTabAndActivate();
void OpenSearchEngineOptionsDialog();
#if defined(OS_CHROMEOS)
void OpenSystemOptionsDialog();
diff --git a/chrome/browser/cocoa/preferences_window_controller.h b/chrome/browser/cocoa/preferences_window_controller.h
index 52dc44f..e6f1be4 100644
--- a/chrome/browser/cocoa/preferences_window_controller.h
+++ b/chrome/browser/cocoa/preferences_window_controller.h
@@ -105,6 +105,7 @@ class ProfileSyncService;
IBOutlet NSButton* syncCustomizeButton_;
IBOutlet NSTextField* syncStatus_;
IBOutlet NSButton* syncLink_;
+ IBOutlet NSButton* privacyDashboardLink_;
scoped_nsobject<NSColor> syncStatusNoErrorBackgroundColor_;
scoped_nsobject<NSColor> syncLinkNoErrorBackgroundColor_;
scoped_nsobject<NSColor> syncErrorBackgroundColor_;
@@ -172,6 +173,7 @@ class ProfileSyncService;
- (IBAction)doSyncAction:(id)sender;
- (IBAction)doSyncCustomize:(id)sender;
- (IBAction)doSyncReauthentication:(id)sender;
+- (IBAction)showPrivacyDashboard:(id)sender;
- (IBAction)showSavedPasswords:(id)sender;
- (IBAction)showAutoFillSettings:(id)sender;
- (IBAction)importData:(id)sender;
diff --git a/chrome/browser/cocoa/preferences_window_controller.mm b/chrome/browser/cocoa/preferences_window_controller.mm
index 89bcc57..6492245 100644
--- a/chrome/browser/cocoa/preferences_window_controller.mm
+++ b/chrome/browser/cocoa/preferences_window_controller.mm
@@ -1339,6 +1339,15 @@ const int kDisabledIndex = 1;
}
}
+// Called when the user clicks on the link to the privacy dashboard.
+- (IBAction)showPrivacyDashboard:(id)sender {
+ Browser* browser = BrowserList::GetLastActive();
+
+ if (!browser || !browser->GetSelectedTabContents())
+ browser = Browser::Create(profile_);
+ browser->OpenPrivacyDashboardTabAndActivate();
+}
+
// Called when the user clicks the "Customize Sync" button in the
// "Personal Stuff" pane. Spawns a dialog-modal sheet that cleans
// itself up on close.