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

Side by Side Diff: chrome/browser/automation/testing_automation_provider.cc

Issue 10332071: Pass command line arguments onto platform apps which provide the right intent. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Windows tests fixed Created 8 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 unified diff | Download patch | Annotate | Revision Log
OLDNEW
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2012 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 "chrome/browser/automation/testing_automation_provider.h" 5 #include "chrome/browser/automation/testing_automation_provider.h"
6 6
7 #include <map> 7 #include <map>
8 #include <set> 8 #include <set>
9 #include <string> 9 #include <string>
10 #include <vector> 10 #include <vector>
(...skipping 5646 matching lines...) Expand 10 before | Expand all | Expand 10 after
5657 if (!old_contents) { 5657 if (!old_contents) {
5658 AutomationJSONReply(this, reply_message).SendError( 5658 AutomationJSONReply(this, reply_message).SendError(
5659 "Cannot identify selected tab contents."); 5659 "Cannot identify selected tab contents.");
5660 return; 5660 return;
5661 } 5661 }
5662 5662
5663 // This observer will delete itself. 5663 // This observer will delete itself.
5664 new AppLaunchObserver(&old_contents->GetController(), this, reply_message, 5664 new AppLaunchObserver(&old_contents->GetController(), this, reply_message,
5665 launch_container); 5665 launch_container);
5666 application_launch::OpenApplication(profile(), extension, launch_container, 5666 application_launch::OpenApplication(profile(), extension, launch_container,
5667 GURL(), CURRENT_TAB); 5667 GURL(), CURRENT_TAB, NULL);
5668 } 5668 }
5669 5669
5670 // Sample JSON input: { "command": "SetAppLaunchType", 5670 // Sample JSON input: { "command": "SetAppLaunchType",
5671 // "id": "ahfgeienlihckogmohjhadlkjgocpleb", 5671 // "id": "ahfgeienlihckogmohjhadlkjgocpleb",
5672 // "launch_type": "pinned" } 5672 // "launch_type": "pinned" }
5673 // Sample JSON output: {} 5673 // Sample JSON output: {}
5674 void TestingAutomationProvider::SetAppLaunchType( 5674 void TestingAutomationProvider::SetAppLaunchType(
5675 Browser* browser, 5675 Browser* browser,
5676 DictionaryValue* args, 5676 DictionaryValue* args,
5677 IPC::Message* reply_message) { 5677 IPC::Message* reply_message) {
(...skipping 968 matching lines...) Expand 10 before | Expand all | Expand 10 after
6646 6646
6647 void TestingAutomationProvider::WaitForProcessLauncherThreadToGoIdle( 6647 void TestingAutomationProvider::WaitForProcessLauncherThreadToGoIdle(
6648 IPC::Message* reply_message) { 6648 IPC::Message* reply_message) {
6649 new WaitForProcessLauncherThreadToGoIdleObserver(this, reply_message); 6649 new WaitForProcessLauncherThreadToGoIdleObserver(this, reply_message);
6650 } 6650 }
6651 6651
6652 void TestingAutomationProvider::OnRemoveProvider() { 6652 void TestingAutomationProvider::OnRemoveProvider() {
6653 if (g_browser_process) 6653 if (g_browser_process)
6654 g_browser_process->GetAutomationProviderList()->RemoveProvider(this); 6654 g_browser_process->GetAutomationProviderList()->RemoveProvider(this);
6655 } 6655 }
OLDNEW
« no previous file with comments | « chrome/browser/autocomplete/extension_app_provider.cc ('k') | chrome/browser/background/background_mode_manager.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698