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

Unified Diff: chrome/browser/ui/browser.cc

Issue 6966023: Pull platform_util dependency from TC. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 9 years, 7 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 | « no previous file | content/browser/renderer_host/browser_render_process_host.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/browser/ui/browser.cc
diff --git a/chrome/browser/ui/browser.cc b/chrome/browser/ui/browser.cc
index 8970ac7b39617662570852a1749049f1a2508fa5..9c3527d37af70065ffaa88a100940092701edc04 100644
--- a/chrome/browser/ui/browser.cc
+++ b/chrome/browser/ui/browser.cc
@@ -1702,7 +1702,15 @@ bool Browser::CanSupportWindowFeature(WindowFeature feature) const {
void Browser::EmailPageLocation() {
UserMetrics::RecordAction(UserMetricsAction("EmailPageLocation"));
- GetSelectedTabContents()->EmailPageLocation();
+ TabContents* tc = GetSelectedTabContents();
+ if (!tc)
+ return;
+
+ std::string title = EscapeQueryParamValue(UTF16ToUTF8(tc->GetTitle()), false);
+ std::string page_url = EscapeQueryParamValue(tc->GetURL().spec(), false);
+ std::string mailto = std::string("mailto:?subject=Fwd:%20") +
+ title + "&body=%0A%0A" + page_url;
+ platform_util::OpenExternal(GURL(mailto));
}
void Browser::Print() {
« no previous file with comments | « no previous file | content/browser/renderer_host/browser_render_process_host.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698