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

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

Issue 11073009: Include individual share intents in the action box and allow direct triggering without an intermedi… (Closed) Base URL: http://git.chromium.org/chromium/src.git@master
Patch Set: addressing review nits Created 8 years, 2 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 | « chrome/browser/ui/browser_commands.h ('k') | chrome/browser/ui/toolbar/action_box_button_controller.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/browser/ui/browser_commands.cc
diff --git a/chrome/browser/ui/browser_commands.cc b/chrome/browser/ui/browser_commands.cc
index cd5676a60f0229724899d18cd08ddd5944bcfaad..ca12cb9d867f3fcae118b822e295cce25801b69b 100644
--- a/chrome/browser/ui/browser_commands.cc
+++ b/chrome/browser/ui/browser_commands.cc
@@ -694,18 +694,6 @@ void ShowChromeToMobileBubble(Browser* browser) {
browser->window()->ShowChromeToMobileBubble();
}
-void ShareCurrentPage(Browser* browser) {
- const GURL& current_url = chrome::GetActiveWebContents(browser)->GetURL();
- webkit_glue::WebIntentData intent_data(
- ASCIIToUTF16("http://webintents.org/share"),
- ASCIIToUTF16("text/uri-list"),
- UTF8ToUTF16(current_url.spec()));
- scoped_ptr<content::WebIntentsDispatcher> dispatcher(
- content::WebIntentsDispatcher::Create(intent_data));
- static_cast<content::WebContentsDelegate*>(browser)->
- WebIntentDispatch(NULL, dispatcher.release());
-}
-
void Print(Browser* browser) {
printing::PrintViewManager* print_view_manager =
printing::PrintViewManager::FromWebContents(
« no previous file with comments | « chrome/browser/ui/browser_commands.h ('k') | chrome/browser/ui/toolbar/action_box_button_controller.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698