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

Unified Diff: third_party/libaddressinput/chromium/cpp/src/rule.h

Issue 109323011: [rac] Download all rules for a country code in libaddressinput. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Merge smaller patches. Created 7 years 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: third_party/libaddressinput/chromium/cpp/src/rule.h
diff --git a/third_party/libaddressinput/chromium/cpp/src/rule.h b/third_party/libaddressinput/chromium/cpp/src/rule.h
index 5cd4dd2af58d940e27d545f4a396f7dc16700f7a..a11dff84ef7d28b917ae3b1d019e4ec33d612915 100644
--- a/third_party/libaddressinput/chromium/cpp/src/rule.h
+++ b/third_party/libaddressinput/chromium/cpp/src/rule.h
@@ -36,6 +36,11 @@ class Rule {
Rule();
~Rule();
+ // Returns the default rule at a country level. If a country does not specify
+ // address format, for example, then the format from this rule should be used
+ // instead.
+ static const Rule& GetDefault();
+
// Copies all data from |rule|.
void CopyFrom(const Rule& rule);

Powered by Google App Engine
This is Rietveld 408576698