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

Side by Side Diff: ios/chrome/browser/ui/settings/clear_browsing_data_collection_view_controller.mm

Issue 2760313003: Revert of Refine the accessibility label of Clear Browsing Data flow. (Closed)
Patch Set: Created 3 years, 9 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
OLDNEW
1 // Copyright 2015 The Chromium Authors. All rights reserved. 1 // Copyright 2015 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 "ios/chrome/browser/ui/settings/clear_browsing_data_collection_view_cont roller.h" 5 #import "ios/chrome/browser/ui/settings/clear_browsing_data_collection_view_cont roller.h"
6 6
7 #include <memory> 7 #include <memory>
8 #include <string> 8 #include <string>
9 9
10 #include "base/ios/ios_util.h" 10 #include "base/ios/ios_util.h"
(...skipping 622 matching lines...) Expand 10 before | Expand all | Expand 10 after
633 alertControllerWithTitle:nil 633 alertControllerWithTitle:nil
634 message:nil 634 message:nil
635 preferredStyle:UIAlertControllerStyleActionSheet]; 635 preferredStyle:UIAlertControllerStyleActionSheet];
636 636
637 UIAlertAction* clearDataAction = [UIAlertAction 637 UIAlertAction* clearDataAction = [UIAlertAction
638 actionWithTitle:l10n_util::GetNSString(IDS_IOS_CLEAR_BUTTON) 638 actionWithTitle:l10n_util::GetNSString(IDS_IOS_CLEAR_BUTTON)
639 style:UIAlertActionStyleDestructive 639 style:UIAlertActionStyleDestructive
640 handler:^(UIAlertAction* action) { 640 handler:^(UIAlertAction* action) {
641 [weakSelf clearDataForDataTypes:dataTypeMaskToRemove]; 641 [weakSelf clearDataForDataTypes:dataTypeMaskToRemove];
642 }]; 642 }];
643 clearDataAction.accessibilityLabel =
644 l10n_util::GetNSString(IDS_IOS_CONFIRM_CLEAR_BUTTON);
645 UIAlertAction* cancelAction = 643 UIAlertAction* cancelAction =
646 [UIAlertAction actionWithTitle:l10n_util::GetNSString(IDS_CANCEL) 644 [UIAlertAction actionWithTitle:l10n_util::GetNSString(IDS_CANCEL)
647 style:UIAlertActionStyleCancel 645 style:UIAlertActionStyleCancel
648 handler:nil]; 646 handler:nil];
649 [alertController addAction:clearDataAction]; 647 [alertController addAction:clearDataAction];
650 [alertController addAction:cancelAction]; 648 [alertController addAction:cancelAction];
651 [self presentViewController:alertController animated:YES completion:nil]; 649 [self presentViewController:alertController animated:YES completion:nil];
652 return YES; 650 return YES;
653 } 651 }
654 652
(...skipping 240 matching lines...) Expand 10 before | Expand all | Expand 10 after
895 893
896 #pragma mark TimeRangeSelectorCollectionViewControllerDelegate 894 #pragma mark TimeRangeSelectorCollectionViewControllerDelegate
897 895
898 - (void)timeRangeSelectorViewController: 896 - (void)timeRangeSelectorViewController:
899 (TimeRangeSelectorCollectionViewController*)collectionViewController 897 (TimeRangeSelectorCollectionViewController*)collectionViewController
900 didSelectTimePeriod:(browsing_data::TimePeriod)timePeriod { 898 didSelectTimePeriod:(browsing_data::TimePeriod)timePeriod {
901 _timePeriod = timePeriod; 899 _timePeriod = timePeriod;
902 } 900 }
903 901
904 @end 902 @end
OLDNEW
« no previous file with comments | « ios/chrome/app/strings/ios_strings.grd ('k') | ios/chrome/browser/ui/settings/settings_egtest.mm » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698