| 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() {
|
|
|