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

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

Issue 25405003: [rAC, OSX] saveInChrome status now persistent. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Review fix. 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
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 478 matching lines...) Expand 10 before | Expand all | Expand 10 after
489 [self requestRelayout]; 489 [self requestRelayout];
490 } 490 }
491 } 491 }
492 492
493 - (void)updateButtonStrip { 493 - (void)updateButtonStrip {
494 [overlayController_ updateState]; 494 [overlayController_ updateState];
495 } 495 }
496 496
497 - (void)updateSection:(autofill::DialogSection)section { 497 - (void)updateSection:(autofill::DialogSection)section {
498 [[mainContainer_ sectionForId:section] update]; 498 [[mainContainer_ sectionForId:section] update];
499 [mainContainer_ updateSaveInChrome];
499 } 500 }
500 501
501 - (void)fillSection:(autofill::DialogSection)section 502 - (void)fillSection:(autofill::DialogSection)section
502 forInput:(const autofill::DetailInput&)input { 503 forInput:(const autofill::DetailInput&)input {
503 [[mainContainer_ sectionForId:section] fillForInput:input]; 504 [[mainContainer_ sectionForId:section] fillForInput:input];
505 [mainContainer_ updateSaveInChrome];
504 } 506 }
505 507
506 - (content::NavigationController*)showSignIn { 508 - (content::NavigationController*)showSignIn {
507 [signInContainer_ loadSignInPage]; 509 [signInContainer_ loadSignInPage];
508 [[mainContainer_ view] setHidden:YES]; 510 [[mainContainer_ view] setHidden:YES];
509 [[signInContainer_ view] setHidden:NO]; 511 [[signInContainer_ view] setHidden:NO];
510 [self performLayout]; 512 [self performLayout];
511 513
512 return [signInContainer_ navigationController]; 514 return [signInContainer_ navigationController];
513 } 515 }
(...skipping 37 matching lines...) Expand 10 before | Expand all | Expand 10 after
551 } 553 }
552 554
553 - (void)activateFieldForInput:(const autofill::DetailInput&)input { 555 - (void)activateFieldForInput:(const autofill::DetailInput&)input {
554 for (size_t i = autofill::SECTION_MIN; i <= autofill::SECTION_MAX; ++i) { 556 for (size_t i = autofill::SECTION_MIN; i <= autofill::SECTION_MAX; ++i) {
555 autofill::DialogSection section = static_cast<autofill::DialogSection>(i); 557 autofill::DialogSection section = static_cast<autofill::DialogSection>(i);
556 [[mainContainer_ sectionForId:section] activateFieldForInput:input]; 558 [[mainContainer_ sectionForId:section] activateFieldForInput:input];
557 } 559 }
558 } 560 }
559 561
560 @end 562 @end
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698