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

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

Issue 2940913002: In sync passphrase dialog reset left bar button and title to saved values (Closed)
Patch Set: Created 3 years, 6 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
« no previous file with comments | « no previous file | no next file » | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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/sync_encryption_passphrase_collection_vi ew_controller.h" 5 #import "ios/chrome/browser/ui/settings/sync_encryption_passphrase_collection_vi ew_controller.h"
6 6
7 #include <memory> 7 #include <memory>
8 8
9 #include "base/i18n/time_formatting.h" 9 #include "base/i18n/time_formatting.h"
10 #include "base/mac/foundation_util.h" 10 #include "base/mac/foundation_util.h"
(...skipping 412 matching lines...) Expand 10 before | Expand all | Expand 10 after
423 self.navigationItem.leftBarButtonItem = [self spinnerButton]; 423 self.navigationItem.leftBarButtonItem = [self spinnerButton];
424 savedTitle_ = [self.title copy]; 424 savedTitle_ = [self.title copy];
425 self.title = processingMessage_; 425 self.title = processingMessage_;
426 } 426 }
427 427
428 - (void)hideDecryptionProgress { 428 - (void)hideDecryptionProgress {
429 if (!isDecryptionProgressShown_) 429 if (!isDecryptionProgressShown_)
430 return; 430 return;
431 isDecryptionProgressShown_ = NO; 431 isDecryptionProgressShown_ = NO;
432 432
433 self.navigationItem.leftBarButtonItem = savedLeftButton_ = nil; 433 self.navigationItem.leftBarButtonItem = savedLeftButton_;
434 self.title = savedTitle_ = nil; 434 savedLeftButton_ = nil;
435 self.title = savedTitle_;
436 savedTitle_ = nil;
435 [self setRightNavBarItem]; 437 [self setRightNavBarItem];
436 } 438 }
437 439
438 - (void)registerTextField:(UITextField*)textField { 440 - (void)registerTextField:(UITextField*)textField {
439 [textField addTarget:self 441 [textField addTarget:self
440 action:@selector(textFieldDidBeginEditing:) 442 action:@selector(textFieldDidBeginEditing:)
441 forControlEvents:UIControlEventEditingDidBegin]; 443 forControlEvents:UIControlEventEditingDidBegin];
442 [textField addTarget:self 444 [textField addTarget:self
443 action:@selector(textFieldDidChange:) 445 action:@selector(textFieldDidChange:)
444 forControlEvents:UIControlEventEditingChanged]; 446 forControlEvents:UIControlEventEditingChanged];
(...skipping 120 matching lines...) Expand 10 before | Expand all | Expand 10 after
565 self.navigationController) popViewControllerOrCloseSettingsAnimated:NO]; 567 self.navigationController) popViewControllerOrCloseSettingsAnimated:NO];
566 } 568 }
567 569
568 #pragma mark - SettingsControllerProtocol callbacks 570 #pragma mark - SettingsControllerProtocol callbacks
569 571
570 - (void)settingsWillBeDismissed { 572 - (void)settingsWillBeDismissed {
571 [self stopObserving]; 573 [self stopObserving];
572 } 574 }
573 575
574 @end 576 @end
OLDNEW
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698