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

Side by Side Diff: content/browser/renderer_host/render_view_host.cc

Issue 6995099: Revert 88309 - Introduced additional spellcheck related histograms. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src/
Patch Set: Created 9 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
« no previous file with comments | « chrome/browser/spellcheck_host_impl.cc ('k') | no next file » | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright (c) 2011 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2011 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 "content/browser/renderer_host/render_view_host.h" 5 #include "content/browser/renderer_host/render_view_host.h"
6 6
7 #include <string> 7 #include <string>
8 #include <utility> 8 #include <utility>
9 #include <vector> 9 #include <vector>
10 10
11 #include "base/command_line.h" 11 #include "base/command_line.h"
12 #include "base/i18n/rtl.h" 12 #include "base/i18n/rtl.h"
13 #include "base/json/json_reader.h" 13 #include "base/json/json_reader.h"
14 #include "base/string_util.h" 14 #include "base/string_util.h"
15 #include "base/time.h" 15 #include "base/time.h"
16 #include "base/utf_string_conversions.h" 16 #include "base/utf_string_conversions.h"
17 #include "base/values.h" 17 #include "base/values.h"
18 #include "chrome/browser/profiles/profile.h" 18 #include "chrome/browser/profiles/profile.h"
19 #include "chrome/browser/spellcheck_host.h"
20 #include "content/browser/browser_message_filter.h" 19 #include "content/browser/browser_message_filter.h"
21 #include "content/browser/child_process_security_policy.h" 20 #include "content/browser/child_process_security_policy.h"
22 #include "content/browser/content_browser_client.h" 21 #include "content/browser/content_browser_client.h"
23 #include "content/browser/cross_site_request_manager.h" 22 #include "content/browser/cross_site_request_manager.h"
24 #include "content/browser/host_zoom_map.h" 23 #include "content/browser/host_zoom_map.h"
25 #include "content/browser/in_process_webkit/session_storage_namespace.h" 24 #include "content/browser/in_process_webkit/session_storage_namespace.h"
26 #include "content/browser/renderer_host/render_process_host.h" 25 #include "content/browser/renderer_host/render_process_host.h"
27 #include "content/browser/renderer_host/render_view_host_delegate.h" 26 #include "content/browser/renderer_host/render_view_host_delegate.h"
28 #include "content/browser/renderer_host/render_view_host_observer.h" 27 #include "content/browser/renderer_host/render_view_host_observer.h"
29 #include "content/browser/renderer_host/render_widget_host.h" 28 #include "content/browser/renderer_host/render_widget_host.h"
(...skipping 924 matching lines...) Expand 10 before | Expand all | Expand 10 after
954 ChildProcessSecurityPolicy::GetInstance(); 953 ChildProcessSecurityPolicy::GetInstance();
955 954
956 // We don't validate |unfiltered_link_url| so that this field can be used 955 // We don't validate |unfiltered_link_url| so that this field can be used
957 // when users want to copy the original link URL. 956 // when users want to copy the original link URL.
958 FilterURL(policy, renderer_id, &validated_params.link_url); 957 FilterURL(policy, renderer_id, &validated_params.link_url);
959 FilterURL(policy, renderer_id, &validated_params.src_url); 958 FilterURL(policy, renderer_id, &validated_params.src_url);
960 FilterURL(policy, renderer_id, &validated_params.page_url); 959 FilterURL(policy, renderer_id, &validated_params.page_url);
961 FilterURL(policy, renderer_id, &validated_params.frame_url); 960 FilterURL(policy, renderer_id, &validated_params.frame_url);
962 961
963 view->ShowContextMenu(validated_params); 962 view->ShowContextMenu(validated_params);
964
965 Profile* profile = process()->profile();
966 DCHECK(profile);
967 if (!validated_params.dictionary_suggestions.empty() &&
968 profile->GetSpellCheckHost())
969 profile->GetSpellCheckHost()->RecordSuggestionStats(1);
970 } 963 }
971 964
972 void RenderViewHost::OnMsgOpenURL(const GURL& url, 965 void RenderViewHost::OnMsgOpenURL(const GURL& url,
973 const GURL& referrer, 966 const GURL& referrer,
974 WindowOpenDisposition disposition) { 967 WindowOpenDisposition disposition) {
975 GURL validated_url(url); 968 GURL validated_url(url);
976 FilterURL(ChildProcessSecurityPolicy::GetInstance(), 969 FilterURL(ChildProcessSecurityPolicy::GetInstance(),
977 process()->id(), &validated_url); 970 process()->id(), &validated_url);
978 971
979 delegate_->RequestOpenURL(validated_url, referrer, disposition); 972 delegate_->RequestOpenURL(validated_url, referrer, disposition);
(...skipping 343 matching lines...) Expand 10 before | Expand all | Expand 10 after
1323 if (view) { 1316 if (view) {
1324 view->ShowPopupMenu(params.bounds, 1317 view->ShowPopupMenu(params.bounds,
1325 params.item_height, 1318 params.item_height,
1326 params.item_font_size, 1319 params.item_font_size,
1327 params.selected_item, 1320 params.selected_item,
1328 params.popup_items, 1321 params.popup_items,
1329 params.right_aligned); 1322 params.right_aligned);
1330 } 1323 }
1331 } 1324 }
1332 #endif 1325 #endif
OLDNEW
« no previous file with comments | « chrome/browser/spellcheck_host_impl.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698