OLD | NEW |
1 // Copyright (c) 2013 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 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 "android_webview/browser/aw_form_database_service.h" | 5 #include "android_webview/browser/aw_form_database_service.h" |
6 #include "base/logging.h" | 6 #include "base/logging.h" |
7 #include "components/autofill/browser/webdata/autofill_table.h" | 7 #include "components/autofill/core/browser/webdata/autofill_table.h" |
8 #include "components/webdata/common/webdata_constants.h" | 8 #include "components/webdata/common/webdata_constants.h" |
9 #include "content/public/browser/browser_thread.h" | 9 #include "content/public/browser/browser_thread.h" |
10 #include "ui/base/l10n/l10n_util_android.h" | 10 #include "ui/base/l10n/l10n_util_android.h" |
11 | 11 |
12 using content::BrowserThread; | 12 using content::BrowserThread; |
13 | 13 |
14 namespace { | 14 namespace { |
15 | 15 |
16 // Callback to handle database error. It seems chrome uses this to | 16 // Callback to handle database error. It seems chrome uses this to |
17 // display an error dialog box only. | 17 // display an error dialog box only. |
(...skipping 80 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
98 if (result) { | 98 if (result) { |
99 DCHECK_EQ(AUTOFILL_VALUE_RESULT, result->GetType()); | 99 DCHECK_EQ(AUTOFILL_VALUE_RESULT, result->GetType()); |
100 const WDResult<bool>* autofill_result = | 100 const WDResult<bool>* autofill_result = |
101 static_cast<const WDResult<bool>*>(result); | 101 static_cast<const WDResult<bool>*>(result); |
102 has_form_data_ = autofill_result->GetValue(); | 102 has_form_data_ = autofill_result->GetValue(); |
103 } | 103 } |
104 completion_.Signal(); | 104 completion_.Signal(); |
105 } | 105 } |
106 | 106 |
107 } // namespace android_webview | 107 } // namespace android_webview |
OLD | NEW |