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

Unified Diff: android_webview/native/aw_contents.cc

Issue 306053008: Rename AutofillManagerDelegate to AutofillClient. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Rebase Created 6 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « android_webview/native/aw_contents.h ('k') | android_webview/native/webview_native.gyp » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: android_webview/native/aw_contents.cc
diff --git a/android_webview/native/aw_contents.cc b/android_webview/native/aw_contents.cc
index 18ff50f5a01b645e64dfdaea0695a21413893ce3..f71235410e577ed1f05d5246f89a20fa46318866 100644
--- a/android_webview/native/aw_contents.cc
+++ b/android_webview/native/aw_contents.cc
@@ -20,7 +20,7 @@
#include "android_webview/common/aw_hit_test_data.h"
#include "android_webview/common/aw_switches.h"
#include "android_webview/common/devtools_instrumentation.h"
-#include "android_webview/native/aw_autofill_manager_delegate.h"
+#include "android_webview/native/aw_autofill_client.h"
#include "android_webview/native/aw_browser_dependency_factory.h"
#include "android_webview/native/aw_contents_client_bridge.h"
#include "android_webview/native/aw_contents_io_thread_client_impl.h"
@@ -174,8 +174,8 @@ AwContents::AwContents(scoped_ptr<WebContents> web_contents)
permission_request_handler_.reset(
new PermissionRequestHandler(this, web_contents_.get()));
- AwAutofillManagerDelegate* autofill_manager_delegate =
- AwAutofillManagerDelegate::FromWebContents(web_contents_.get());
+ AwAutofillClient* autofill_manager_delegate =
+ AwAutofillClient::FromWebContents(web_contents_.get());
InitDataReductionProxyIfNecessary();
if (autofill_manager_delegate)
InitAutofillIfNecessary(autofill_manager_delegate->GetSaveFormData());
@@ -220,7 +220,7 @@ void AwContents::SetSaveFormData(bool enabled) {
// We need to check for the existence, since autofill_manager_delegate
// may not be created when the setting is false.
if (ContentAutofillDriver::FromWebContents(web_contents_.get())) {
- AwAutofillManagerDelegate::FromWebContents(web_contents_.get())->
+ AwAutofillClient::FromWebContents(web_contents_.get())->
SetSaveFormData(enabled);
}
}
@@ -242,21 +242,21 @@ void AwContents::InitAutofillIfNecessary(bool enabled) {
AwBrowserContext::FromWebContents(web_contents)->
CreateUserPrefServiceIfNecessary();
- AwAutofillManagerDelegate::CreateForWebContents(web_contents);
+ AwAutofillClient::CreateForWebContents(web_contents);
ContentAutofillDriver::CreateForWebContentsAndDelegate(
web_contents,
- AwAutofillManagerDelegate::FromWebContents(web_contents),
+ AwAutofillClient::FromWebContents(web_contents),
l10n_util::GetDefaultLocale(),
AutofillManager::DISABLE_AUTOFILL_DOWNLOAD_MANAGER);
}
-void AwContents::SetAwAutofillManagerDelegate(jobject delegate) {
+void AwContents::SetAwAutofillClient(jobject client) {
DCHECK(BrowserThread::CurrentlyOn(BrowserThread::UI));
JNIEnv* env = AttachCurrentThread();
ScopedJavaLocalRef<jobject> obj = java_ref_.get(env);
if (obj.is_null())
return;
- Java_AwContents_setAwAutofillManagerDelegate(env, obj.obj(), delegate);
+ Java_AwContents_setAwAutofillClient(env, obj.obj(), client);
}
AwContents::~AwContents() {
« no previous file with comments | « android_webview/native/aw_contents.h ('k') | android_webview/native/webview_native.gyp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698