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

Side by Side Diff: trunk/src/chrome/browser/ui/cocoa/autofill/autofill_dialog_cocoa.mm

Issue 25673002: Revert 226376 "[rAC, OSX] saveInChrome status now persistent." (Closed) Base URL: svn://svn.chromium.org/chrome/
Patch Set: Created 7 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 | trunk/src/chrome/browser/ui/cocoa/autofill/autofill_main_container.h » ('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) 2013 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2013 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 #include "chrome/browser/ui/cocoa/autofill/autofill_dialog_cocoa.h" 5 #include "chrome/browser/ui/cocoa/autofill/autofill_dialog_cocoa.h"
6 6
7 #include "base/bind.h" 7 #include "base/bind.h"
8 #include "base/mac/bundle_locations.h" 8 #include "base/mac/bundle_locations.h"
9 #include "base/mac/scoped_nsobject.h" 9 #include "base/mac/scoped_nsobject.h"
10 #include "base/message_loop/message_loop.h" 10 #include "base/message_loop/message_loop.h"
(...skipping 482 matching lines...) Expand 10 before | Expand all | Expand 10 after
493 [self requestRelayout]; 493 [self requestRelayout];
494 } 494 }
495 } 495 }
496 496
497 - (void)updateButtonStrip { 497 - (void)updateButtonStrip {
498 [overlayController_ updateState]; 498 [overlayController_ updateState];
499 } 499 }
500 500
501 - (void)updateSection:(autofill::DialogSection)section { 501 - (void)updateSection:(autofill::DialogSection)section {
502 [[mainContainer_ sectionForId:section] update]; 502 [[mainContainer_ sectionForId:section] update];
503 [mainContainer_ updateSaveInChrome];
504 } 503 }
505 504
506 - (void)fillSection:(autofill::DialogSection)section 505 - (void)fillSection:(autofill::DialogSection)section
507 forInput:(const autofill::DetailInput&)input { 506 forInput:(const autofill::DetailInput&)input {
508 [[mainContainer_ sectionForId:section] fillForInput:input]; 507 [[mainContainer_ sectionForId:section] fillForInput:input];
509 [mainContainer_ updateSaveInChrome];
510 } 508 }
511 509
512 - (content::NavigationController*)showSignIn { 510 - (content::NavigationController*)showSignIn {
513 [signInContainer_ loadSignInPage]; 511 [signInContainer_ loadSignInPage];
514 [[mainContainer_ view] setHidden:YES]; 512 [[mainContainer_ view] setHidden:YES];
515 [[signInContainer_ view] setHidden:NO]; 513 [[signInContainer_ view] setHidden:NO];
516 [self requestRelayout]; 514 [self requestRelayout];
517 515
518 return [signInContainer_ navigationController]; 516 return [signInContainer_ navigationController];
519 } 517 }
(...skipping 37 matching lines...) Expand 10 before | Expand all | Expand 10 after
557 } 555 }
558 556
559 - (void)activateFieldForInput:(const autofill::DetailInput&)input { 557 - (void)activateFieldForInput:(const autofill::DetailInput&)input {
560 for (size_t i = autofill::SECTION_MIN; i <= autofill::SECTION_MAX; ++i) { 558 for (size_t i = autofill::SECTION_MIN; i <= autofill::SECTION_MAX; ++i) {
561 autofill::DialogSection section = static_cast<autofill::DialogSection>(i); 559 autofill::DialogSection section = static_cast<autofill::DialogSection>(i);
562 [[mainContainer_ sectionForId:section] activateFieldForInput:input]; 560 [[mainContainer_ sectionForId:section] activateFieldForInput:input];
563 } 561 }
564 } 562 }
565 563
566 @end 564 @end
OLDNEW
« no previous file with comments | « no previous file | trunk/src/chrome/browser/ui/cocoa/autofill/autofill_main_container.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698