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

Unified Diff: trunk/src/chrome/browser/ui/cocoa/autofill/autofill_main_container.mm

Issue 25673002: Revert 226376 "[rAC, OSX] saveInChrome status now persistent." (Closed) Base URL: svn://svn.chromium.org/chrome/
Patch Set: Created 7 years, 3 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « trunk/src/chrome/browser/ui/cocoa/autofill/autofill_main_container.h ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: trunk/src/chrome/browser/ui/cocoa/autofill/autofill_main_container.mm
===================================================================
--- trunk/src/chrome/browser/ui/cocoa/autofill/autofill_main_container.mm (revision 226384)
+++ trunk/src/chrome/browser/ui/cocoa/autofill/autofill_main_container.mm (working copy)
@@ -55,8 +55,7 @@
[saveInChromeCheckbox_ setButtonType:NSSwitchButton];
[saveInChromeCheckbox_ setTitle:
base::SysUTF16ToNSString(delegate_->SaveLocallyText())];
- [saveInChromeCheckbox_ setState:
- (delegate_->ShouldSaveInChrome() ? NSOnState : NSOffState)];
+ [saveInChromeCheckbox_ setState:NSOnState];
[saveInChromeCheckbox_ sizeToFit];
[[self view] addSubview:saveInChromeCheckbox_];
@@ -232,7 +231,7 @@
}
- (void)modelChanged {
- [self updateSaveInChrome];
+ [saveInChromeCheckbox_ setHidden:!delegate_->ShouldOfferToSaveInChrome()];
[detailsContainer_ modelChanged];
}
@@ -282,10 +281,6 @@
return [detailsContainer_ validate];
}
-- (void)updateSaveInChrome {
- [saveInChromeCheckbox_ setHidden:!delegate_->ShouldOfferToSaveInChrome()];
-}
-
@end
« no previous file with comments | « trunk/src/chrome/browser/ui/cocoa/autofill/autofill_main_container.h ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698