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

Side by Side Diff: chrome/browser/ui/autofill/autofill_dialog_controller_impl.cc

Issue 18199003: Allow Chrome OS login profile to have different default pref values (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Rebased. Created 7 years, 5 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 2013 The Chromium Authors. All rights reserved. 1 // Copyright 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/autofill/autofill_dialog_controller_impl.h" 5 #include "chrome/browser/ui/autofill/autofill_dialog_controller_impl.h"
6 6
7 #include <algorithm> 7 #include <algorithm>
8 #include <map> 8 #include <map>
9 #include <string> 9 #include <string>
10 10
(...skipping 406 matching lines...) Expand 10 before | Expand all | Expand 10 after
417 AutofillDialogControllerImpl* autofill_dialog_controller = 417 AutofillDialogControllerImpl* autofill_dialog_controller =
418 new AutofillDialogControllerImpl(contents, 418 new AutofillDialogControllerImpl(contents,
419 form_structure, 419 form_structure,
420 source_url, 420 source_url,
421 dialog_type, 421 dialog_type,
422 callback); 422 callback);
423 return autofill_dialog_controller->weak_ptr_factory_.GetWeakPtr(); 423 return autofill_dialog_controller->weak_ptr_factory_.GetWeakPtr();
424 } 424 }
425 425
426 // static 426 // static
427 void AutofillDialogControllerImpl::RegisterUserPrefs( 427 void AutofillDialogControllerImpl::RegisterProfilePrefs(
428 user_prefs::PrefRegistrySyncable* registry) { 428 user_prefs::PrefRegistrySyncable* registry) {
429 registry->RegisterIntegerPref( 429 registry->RegisterIntegerPref(
430 ::prefs::kAutofillDialogShowCount, 430 ::prefs::kAutofillDialogShowCount,
431 0, 431 0,
432 user_prefs::PrefRegistrySyncable::SYNCABLE_PREF); 432 user_prefs::PrefRegistrySyncable::SYNCABLE_PREF);
433 registry->RegisterBooleanPref( 433 registry->RegisterBooleanPref(
434 ::prefs::kAutofillDialogHasPaidWithWallet, 434 ::prefs::kAutofillDialogHasPaidWithWallet,
435 false, 435 false,
436 user_prefs::PrefRegistrySyncable::SYNCABLE_PREF); 436 user_prefs::PrefRegistrySyncable::SYNCABLE_PREF);
437 registry->RegisterBooleanPref( 437 registry->RegisterBooleanPref(
(...skipping 2866 matching lines...) Expand 10 before | Expand all | Expand 10 after
3304 AutofillMetrics::DIALOG_USER_SIGNED_IN_NO_WALLET_NO_AUTOFILL; 3304 AutofillMetrics::DIALOG_USER_SIGNED_IN_NO_WALLET_NO_AUTOFILL;
3305 } 3305 }
3306 3306
3307 // Has Wallet items. 3307 // Has Wallet items.
3308 return has_autofill_profiles ? 3308 return has_autofill_profiles ?
3309 AutofillMetrics::DIALOG_USER_SIGNED_IN_HAS_WALLET_HAS_AUTOFILL : 3309 AutofillMetrics::DIALOG_USER_SIGNED_IN_HAS_WALLET_HAS_AUTOFILL :
3310 AutofillMetrics::DIALOG_USER_SIGNED_IN_HAS_WALLET_NO_AUTOFILL; 3310 AutofillMetrics::DIALOG_USER_SIGNED_IN_HAS_WALLET_NO_AUTOFILL;
3311 } 3311 }
3312 3312
3313 } // namespace autofill 3313 } // namespace autofill
OLDNEW
« no previous file with comments | « chrome/browser/ui/autofill/autofill_dialog_controller_impl.h ('k') | chrome/browser/ui/gesture_prefs_observer_factory_aura.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698