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

Unified Diff: chrome/browser/autofill/autofill_merge_unittest.cc

Issue 6437001: Pull in a named constant from WebKit (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Namespace. Created 9 years, 10 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 side-by-side diff with in-line comments
Download patch
Index: chrome/browser/autofill/autofill_merge_unittest.cc
diff --git a/chrome/browser/autofill/autofill_merge_unittest.cc b/chrome/browser/autofill/autofill_merge_unittest.cc
index 1c7203216ab1607dc93e165c6e49e45562272ad9..a1548a0fe5a60296fc34508237ad26f038cb377d 100644
--- a/chrome/browser/autofill/autofill_merge_unittest.cc
+++ b/chrome/browser/autofill/autofill_merge_unittest.cc
@@ -15,14 +15,11 @@
#include "chrome/browser/autofill/personal_data_manager.h"
#include "googleurl/src/gurl.h"
#include "testing/gtest/include/gtest/gtest.h"
+#include "third_party/WebKit/Source/WebKit/chromium/public/WebInputElement.h"
#include "webkit/glue/form_data.h"
namespace {
-// TODO(isherman): Pull in the equivalent named constant from WebKit, without
-// breaking the shared-lib build.
-const int kDefaultMaxLength = 0x80000;
-
const FilePath::CharType kTestName[] = FILE_PATH_LITERAL("merge");
const FilePath::CharType kFileNamePattern[] = FILE_PATH_LITERAL("*.in");
@@ -184,7 +181,7 @@ void AutoFillMergeTest::MergeProfiles(const std::string& profiles,
field_type,
value,
ASCIIToUTF16("text"),
- kDefaultMaxLength,
+ WebKit::WebInputElement::defaultMaxLength(),
false);
form.fields.push_back(field);
}

Powered by Google App Engine
This is Rietveld 408576698