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

Side by Side Diff: chrome/browser/cocoa/preferences_window_controller.mm

Issue 3792007: Fix some problems with the ENTER_PASSPHRASE state in sync setup.... (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: '' Created 10 years, 2 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 unified diff | Download patch | Annotate | Revision Log
« no previous file with comments | « no previous file | chrome/browser/gtk/options/content_page_gtk.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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
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
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
OLDNEW
« no previous file with comments | « no previous file | chrome/browser/gtk/options/content_page_gtk.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698