| OLD | NEW |
| 1 // Copyright (c) 2010 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2010 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 "chrome/browser/cocoa/preferences_window_controller.h" | 5 #import "chrome/browser/cocoa/preferences_window_controller.h" |
| 6 | 6 |
| 7 #include <algorithm> | 7 #include <algorithm> |
| 8 | 8 |
| 9 #include "app/l10n_util.h" | 9 #include "app/l10n_util.h" |
| 10 #include "app/l10n_util_mac.h" | 10 #include "app/l10n_util_mac.h" |
| (...skipping 1334 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1345 | 1345 |
| 1346 if (!browser || !browser->GetSelectedTabContents()) | 1346 if (!browser || !browser->GetSelectedTabContents()) |
| 1347 browser = Browser::Create(profile_); | 1347 browser = Browser::Create(profile_); |
| 1348 browser->OpenPrivacyDashboardTabAndActivate(); | 1348 browser->OpenPrivacyDashboardTabAndActivate(); |
| 1349 } | 1349 } |
| 1350 | 1350 |
| 1351 // Called when the user clicks the "Customize Sync" button in the | 1351 // Called when the user clicks the "Customize Sync" button in the |
| 1352 // "Personal Stuff" pane. Spawns a dialog-modal sheet that cleans | 1352 // "Personal Stuff" pane. Spawns a dialog-modal sheet that cleans |
| 1353 // itself up on close. | 1353 // itself up on close. |
| 1354 - (IBAction)doSyncCustomize:(id)sender { | 1354 - (IBAction)doSyncCustomize:(id)sender { |
| 1355 syncService_->ShowChooseDataTypes(NULL); | 1355 syncService_->ShowConfigure(NULL); |
| 1356 } | 1356 } |
| 1357 | 1357 |
| 1358 - (IBAction)doSyncReauthentication:(id)sender { | 1358 - (IBAction)doSyncReauthentication:(id)sender { |
| 1359 DCHECK(syncService_ && !syncService_->IsManaged()); | 1359 DCHECK(syncService_ && !syncService_->IsManaged()); |
| 1360 syncService_->ShowLoginDialog(NULL); | 1360 syncService_->ShowLoginDialog(NULL); |
| 1361 } | 1361 } |
| 1362 | 1362 |
| 1363 - (void)setPasswordManagerEnabledIndex:(NSInteger)value { | 1363 - (void)setPasswordManagerEnabledIndex:(NSInteger)value { |
| 1364 if (value == kEnabledIndex) | 1364 if (value == kEnabledIndex) |
| 1365 [self recordUserAction:UserMetricsAction( | 1365 [self recordUserAction:UserMetricsAction( |
| (...skipping 746 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 2112 case OPTIONS_PAGE_ADVANCED: | 2112 case OPTIONS_PAGE_ADVANCED: |
| 2113 return underTheHoodView_; | 2113 return underTheHoodView_; |
| 2114 case OPTIONS_PAGE_DEFAULT: | 2114 case OPTIONS_PAGE_DEFAULT: |
| 2115 case OPTIONS_PAGE_COUNT: | 2115 case OPTIONS_PAGE_COUNT: |
| 2116 LOG(DFATAL) << "Invalid page value " << page; | 2116 LOG(DFATAL) << "Invalid page value " << page; |
| 2117 } | 2117 } |
| 2118 return basicsView_; | 2118 return basicsView_; |
| 2119 } | 2119 } |
| 2120 | 2120 |
| 2121 @end | 2121 @end |
| OLD | NEW |