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

Unified Diff: android_webview/native/aw_form_database.cc

Issue 72613006: Eliminate AutofillWebDataService::FromBrowserContext(). (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Rebase 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: android_webview/native/aw_form_database.cc
diff --git a/android_webview/native/aw_form_database.cc b/android_webview/native/aw_form_database.cc
index 59015ba5e064b044596165b8a27b46d1c928df13..851340e265d8acf35496cf53dab30b79252e5ba3 100644
--- a/android_webview/native/aw_form_database.cc
+++ b/android_webview/native/aw_form_database.cc
@@ -10,22 +10,8 @@
#include "base/android/jni_android.h"
#include "base/logging.h"
#include "base/time/time.h"
-#include "components/autofill/core/browser/webdata/autofill_webdata_service.h"
#include "jni/AwFormDatabase_jni.h"
-// static
-scoped_refptr<autofill::AutofillWebDataService>
-autofill::AutofillWebDataService::FromBrowserContext(
- content::BrowserContext* context) {
-
- DCHECK(context);
- android_webview::AwFormDatabaseService* service =
- static_cast<android_webview::AwBrowserContext*>(
- context)->GetFormDatabaseService();
- DCHECK(service);
- return service->get_autofill_webdata_service();
-}
-
namespace android_webview {
namespace {
@@ -39,7 +25,6 @@ AwFormDatabaseService* GetFormDatabaseService() {
} // anonymous namespace
-
// static
jboolean HasFormData(JNIEnv*, jclass) {
return GetFormDatabaseService()->HasFormData();
« no previous file with comments | « android_webview/native/aw_autofill_manager_delegate.cc ('k') | chrome/browser/autofill/personal_data_manager_factory.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698