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

Unified Diff: chrome/browser/ui/autofill/data_model_wrapper.h

Issue 63053003: Ask libaddressinput for address components to use in requestAutocomplete(). (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: . Created 7 years, 1 month 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
Index: chrome/browser/ui/autofill/data_model_wrapper.h
diff --git a/chrome/browser/ui/autofill/data_model_wrapper.h b/chrome/browser/ui/autofill/data_model_wrapper.h
index 3cb56613340a0a96e5c1efdc5d3bb5299670519b..64aa7501a70c6c68ea66a3ee95d4ff9723360cde 100644
--- a/chrome/browser/ui/autofill/data_model_wrapper.h
+++ b/chrome/browser/ui/autofill/data_model_wrapper.h
@@ -36,8 +36,8 @@ class DataModelWrapper {
virtual ~DataModelWrapper();
// Fills in |inputs| with the data that this model contains (|inputs| is an
- // out-param).
- void FillInputs(DetailInputs* inputs);
+ // out-param). |country_code| is the country used for |inputs|' section.
+ void FillInputs(DetailInputs* inputs, const std::string& country_code);
// Returns the data for a specific autocomplete type in a format for filling
// into a web form.
@@ -219,18 +219,19 @@ class FullWalletShippingWrapper : public DataModelWrapper {
DISALLOW_COPY_AND_ASSIGN(FullWalletShippingWrapper);
};
-// A DataModelWrapper to copy the output of one section to the input of another.
-class DetailOutputWrapper : public DataModelWrapper {
+// A DataModelWrapper to copy the preserved input of a section to a newly
+// created one.
+class SnapshotWrapper : public DataModelWrapper {
public:
- explicit DetailOutputWrapper(const DetailOutputMap& outputs);
- virtual ~DetailOutputWrapper();
+ explicit SnapshotWrapper(const UserInputSnapshot& snapshot);
+ virtual ~SnapshotWrapper();
virtual base::string16 GetInfo(const AutofillType& type) const OVERRIDE;
private:
- const DetailOutputMap& outputs_;
+ const UserInputSnapshot& snapshot_;
- DISALLOW_COPY_AND_ASSIGN(DetailOutputWrapper);
+ DISALLOW_COPY_AND_ASSIGN(SnapshotWrapper);
};
} // namespace autofill

Powered by Google App Engine
This is Rietveld 408576698