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

Side by Side Diff: android_webview/browser/aw_form_database_service.cc

Issue 17392006: In components/autofill, move browser/ to core/browser/ (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Rebase to fix conflicts Created 7 years, 6 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 | Annotate | Revision Log
OLDNEW
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
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
OLDNEW
« no previous file with comments | « android_webview/browser/aw_form_database_service.h ('k') | android_webview/browser/aw_form_database_service_unittest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698