summaryrefslogtreecommitdiffstats
path: root/chrome/renderer/blocked_plugin.cc
diff options
context:
space:
mode:
authorthestig@chromium.org <thestig@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2011-03-11 02:02:58 +0000
committerthestig@chromium.org <thestig@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2011-03-11 02:02:58 +0000
commitee2586bcab256dd2133a9dd31fe8c02a9938dad8 (patch)
treec7c064d901bfcac8d4245226b70b0d3cbdb67794 /chrome/renderer/blocked_plugin.cc
parentedb63cca7fdc57ac8e84dcec991537778e35dafe (diff)
downloadchromium_src-ee2586bcab256dd2133a9dd31fe8c02a9938dad8.zip
chromium_src-ee2586bcab256dd2133a9dd31fe8c02a9938dad8.tar.gz
chromium_src-ee2586bcab256dd2133a9dd31fe8c02a9938dad8.tar.bz2
Coverity: Fix some uninitialized struct members.
CID=14884,14885,14886 BUG=none TEST=none Review URL: http://codereview.chromium.org/6665017 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@77761 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'chrome/renderer/blocked_plugin.cc')
-rw-r--r--chrome/renderer/blocked_plugin.cc7
1 files changed, 6 insertions, 1 deletions
diff --git a/chrome/renderer/blocked_plugin.cc b/chrome/renderer/blocked_plugin.cc
index 8b3cb34..fa2b31a 100644
--- a/chrome/renderer/blocked_plugin.cc
+++ b/chrome/renderer/blocked_plugin.cc
@@ -104,6 +104,8 @@ void BlockedPlugin::ShowContextMenu(const WebKit::WebMouseEvent& event) {
WebMenuItemInfo name_item;
name_item.label = name_;
+ name_item.hasTextDirectionOverride = false;
+ name_item.textDirection = WebKit::WebTextDirectionDefault;
custom_items[0] = name_item;
WebMenuItemInfo separator_item;
@@ -115,6 +117,8 @@ void BlockedPlugin::ShowContextMenu(const WebKit::WebMouseEvent& event) {
run_item.enabled = true;
run_item.label = WebString::fromUTF8(
l10n_util::GetStringUTF8(IDS_CONTENT_CONTEXT_PLUGIN_RUN).c_str());
+ run_item.hasTextDirectionOverride = false;
+ run_item.textDirection = WebKit::WebTextDirectionDefault;
custom_items[2] = run_item;
WebMenuItemInfo hide_item;
@@ -122,6 +126,8 @@ void BlockedPlugin::ShowContextMenu(const WebKit::WebMouseEvent& event) {
hide_item.enabled = true;
hide_item.label = WebString::fromUTF8(
l10n_util::GetStringUTF8(IDS_CONTENT_CONTEXT_PLUGIN_HIDE).c_str());
+ hide_item.hasTextDirectionOverride = false;
+ hide_item.textDirection = WebKit::WebTextDirectionDefault;
custom_items[3] = hide_item;
menu_data.customItems.swap(custom_items);
@@ -236,4 +242,3 @@ void BlockedPlugin::HidePlugin() {
}
}
}
-