summaryrefslogtreecommitdiffstats
path: root/chrome/browser
diff options
context:
space:
mode:
authormaruel@chromium.org <maruel@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2009-02-12 19:49:04 +0000
committermaruel@chromium.org <maruel@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2009-02-12 19:49:04 +0000
commitb94d3327ed86b1345ceca7806ae1e050055e252b (patch)
treea5fce8db5729299807c8ac0d3bf37e721b535392 /chrome/browser
parent35b7041fbb49843f868c34ed3b5200d7653a6f5d (diff)
downloadchromium_src-b94d3327ed86b1345ceca7806ae1e050055e252b.zip
chromium_src-b94d3327ed86b1345ceca7806ae1e050055e252b.tar.gz
chromium_src-b94d3327ed86b1345ceca7806ae1e050055e252b.tar.bz2
Lots of small nits to help to split off webkit.dll.
- Stop directly referencing WebPluginDelegateImpl. - Make the password manager to not allocation the data on heap. - Remove some unneeded includes. Review URL: http://codereview.chromium.org/20208 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@9692 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'chrome/browser')
-rw-r--r--chrome/browser/autofill_manager.cc2
-rw-r--r--chrome/browser/autofill_manager.h2
-rw-r--r--chrome/browser/password_manager/password_manager.cc11
-rw-r--r--chrome/browser/renderer_host/resource_message_filter.h1
4 files changed, 9 insertions, 7 deletions
diff --git a/chrome/browser/autofill_manager.cc b/chrome/browser/autofill_manager.cc
index 8284cb4..6b44dd6 100644
--- a/chrome/browser/autofill_manager.cc
+++ b/chrome/browser/autofill_manager.cc
@@ -9,6 +9,7 @@
#include "chrome/browser/tab_contents/web_contents.h"
#include "chrome/common/pref_names.h"
#include "chrome/common/pref_service.h"
+#include "webkit/glue/autofill_form.h"
// static
void AutofillManager::RegisterUserPrefs(PrefService* prefs) {
@@ -114,4 +115,3 @@ void AutofillManager::StoreFormEntriesInWebDatabase(
profile()->GetWebDataService(Profile::EXPLICIT_ACCESS)->
AddAutofillFormElements(form.elements);
}
-
diff --git a/chrome/browser/autofill_manager.h b/chrome/browser/autofill_manager.h
index 3ece658..b3f03f9 100644
--- a/chrome/browser/autofill_manager.h
+++ b/chrome/browser/autofill_manager.h
@@ -10,8 +10,8 @@
#include "chrome/browser/webdata/web_data_service.h"
#include "chrome/common/pref_member.h"
-#include "webkit/glue/autofill_form.h"
+class AutofillForm;
class Profile;
class WebContents;
diff --git a/chrome/browser/password_manager/password_manager.cc b/chrome/browser/password_manager/password_manager.cc
index 28b83db..4769f07 100644
--- a/chrome/browser/password_manager/password_manager.cc
+++ b/chrome/browser/password_manager/password_manager.cc
@@ -228,11 +228,12 @@ void PasswordManager::Autofill(const PasswordForm& form_for_autofill,
// schemed password form may have been freed, so we need to distinguish.
bool action_mismatch = form_for_autofill.action.GetWithEmptyPath() !=
preferred_match->action.GetWithEmptyPath();
- scoped_ptr<PasswordFormDomManager::FillData> fill_data(
- PasswordFormDomManager::CreateFillData(form_for_autofill,
- best_matches, preferred_match,
- action_mismatch));
- web_contents_->render_view_host()->FillPasswordForm(*fill_data);
+ PasswordFormDomManager::FillData fill_data;
+ PasswordFormDomManager::InitFillData(form_for_autofill,
+ best_matches, preferred_match,
+ action_mismatch,
+ &fill_data);
+ web_contents_->render_view_host()->FillPasswordForm(fill_data);
return;
}
default:
diff --git a/chrome/browser/renderer_host/resource_message_filter.h b/chrome/browser/renderer_host/resource_message_filter.h
index 764aaa8..c5b25f9 100644
--- a/chrome/browser/renderer_host/resource_message_filter.h
+++ b/chrome/browser/renderer_host/resource_message_filter.h
@@ -10,6 +10,7 @@
#include "base/gfx/rect.h"
#include "base/gfx/native_widget_types.h"
#include "base/ref_counted.h"
+#include "base/shared_memory.h"
#include "build/build_config.h"
#include "chrome/browser/net/resolve_proxy_msg_helper.h"
#include "chrome/browser/renderer_host/resource_dispatcher_host.h"