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

Side by Side Diff: go-back-with-backspace/pages/common.js

Issue 2325963003: Add options and a browser-action popup. (Closed) Base URL: https://chromium.googlesource.com/chromium/extensions-by-google.git@master
Patch Set: Comments and copyrights Created 4 years, 3 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
OLDNEW
(Empty)
1 // Copyright 2016 Google Inc. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file.
4
5 // Open a pre-filled email to send feedback to the extension developers. The
6 // initial content of the email depends on whether the URL of the current page
7 // is provided.
8 function reportPage(url) {
9 var subject = chrome.i18n.getMessage('reportSubject');
10 var body = '';
11 if (url)
12 body = chrome.i18n.getMessage('reportBodyWithURL', url);
13 else
14 body = chrome.i18n.getMessage('reportBody');
15 var msg = 'mailto:gobackwithbackspace@google.com' +
16 '?subject=' + encodeURIComponent(subject) +
17 '&body=' + encodeURIComponent(body);
18 chrome.tabs.create({
19 url: msg,
20 active: true});
21 }
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698