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

Side by Side Diff: chrome/browser/ui/webui/options2/autofill_options_handler2.h

Issue 10081023: Fix a crash when trying to input phone number in the autofill settings page while running as guest … (Closed) Base URL: http://git.chromium.org/chromium/src.git@master
Patch Set: Created 8 years, 8 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 | chrome/browser/ui/webui/options2/autofill_options_handler2.cc » ('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) 2012 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2012 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 #ifndef CHROME_BROWSER_UI_WEBUI_OPTIONS2_AUTOFILL_OPTIONS_HANDLER2_H_ 5 #ifndef CHROME_BROWSER_UI_WEBUI_OPTIONS2_AUTOFILL_OPTIONS_HANDLER2_H_
6 #define CHROME_BROWSER_UI_WEBUI_OPTIONS2_AUTOFILL_OPTIONS_HANDLER2_H_ 6 #define CHROME_BROWSER_UI_WEBUI_OPTIONS2_AUTOFILL_OPTIONS_HANDLER2_H_
7 7
8 #include <string> 8 #include <string>
9 9
10 #include "base/compiler_specific.h" 10 #include "base/compiler_specific.h"
(...skipping 64 matching lines...) Expand 10 before | Expand all | Expand 10 after
75 // |args| - an array containing the GUID of the credit card followed by the 75 // |args| - an array containing the GUID of the credit card followed by the
76 // credit card data. 76 // credit card data.
77 void SetCreditCard(const base::ListValue* args); 77 void SetCreditCard(const base::ListValue* args);
78 78
79 // Validates a list of phone numbers. The resulting validated list of 79 // Validates a list of phone numbers. The resulting validated list of
80 // numbers is then sent back to the WebUI. 80 // numbers is then sent back to the WebUI.
81 // |args| - an array containing the index of the modified or added number, the 81 // |args| - an array containing the index of the modified or added number, the
82 // array of numbers, and the country code string set on the profile. 82 // array of numbers, and the country code string set on the profile.
83 void ValidatePhoneNumbers(const base::ListValue* args); 83 void ValidatePhoneNumbers(const base::ListValue* args);
84 84
85 // Returns true if |personal_data_| is non-null and loaded.
86 bool IsPersonalDataLoaded() const;
87
85 // The personal data manager, used to load Autofill profiles and credit cards. 88 // The personal data manager, used to load Autofill profiles and credit cards.
86 // Unowned pointer, may not be NULL. 89 // Unowned pointer, may not be NULL.
87 PersonalDataManager* personal_data_; 90 PersonalDataManager* personal_data_;
88 91
89 DISALLOW_COPY_AND_ASSIGN(AutofillOptionsHandler); 92 DISALLOW_COPY_AND_ASSIGN(AutofillOptionsHandler);
90 }; 93 };
91 94
92 } // namespace options2 95 } // namespace options2
93 96
94 #endif // CHROME_BROWSER_UI_WEBUI_OPTIONS2_AUTOFILL_OPTIONS_HANDLER2_H_ 97 #endif // CHROME_BROWSER_UI_WEBUI_OPTIONS2_AUTOFILL_OPTIONS_HANDLER2_H_
OLDNEW
« no previous file with comments | « no previous file | chrome/browser/ui/webui/options2/autofill_options_handler2.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698