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

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

Issue 8526017: Append parameters to webstore URL to indicate launch source. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: compile fixes Created 9 years, 1 month 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
« no previous file with comments | « no previous file | chrome/browser/background/background_mode_manager.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright (c) 2011 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2011 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 5624 matching lines...) Expand 10 before | Expand all | Expand 10 after
5635 TabContents* old_contents = browser->GetSelectedTabContents(); 5635 TabContents* old_contents = browser->GetSelectedTabContents();
5636 if (!old_contents) { 5636 if (!old_contents) {
5637 AutomationJSONReply(this, reply_message).SendError( 5637 AutomationJSONReply(this, reply_message).SendError(
5638 "Cannot identify selected tab contents."); 5638 "Cannot identify selected tab contents.");
5639 return; 5639 return;
5640 } 5640 }
5641 5641
5642 // This observer will delete itself. 5642 // This observer will delete itself.
5643 new AppLaunchObserver(&old_contents->controller(), this, reply_message, 5643 new AppLaunchObserver(&old_contents->controller(), this, reply_message,
5644 launch_container); 5644 launch_container);
5645 Browser::OpenApplication(profile(), extension, launch_container, 5645 Browser::OpenApplication(profile(), extension, launch_container, GURL(),
5646 CURRENT_TAB); 5646 CURRENT_TAB);
5647 } 5647 }
5648 5648
5649 // Sample JSON input: { "command": "SetAppLaunchType", 5649 // Sample JSON input: { "command": "SetAppLaunchType",
5650 // "id": "ahfgeienlihckogmohjhadlkjgocpleb", 5650 // "id": "ahfgeienlihckogmohjhadlkjgocpleb",
5651 // "launch_type": "pinned" } 5651 // "launch_type": "pinned" }
5652 // Sample JSON output: {} 5652 // Sample JSON output: {}
5653 void TestingAutomationProvider::SetAppLaunchType( 5653 void TestingAutomationProvider::SetAppLaunchType(
5654 Browser* browser, 5654 Browser* browser,
5655 DictionaryValue* args, 5655 DictionaryValue* args,
(...skipping 732 matching lines...) Expand 10 before | Expand all | Expand 10 after
6388 6388
6389 Send(reply_message_); 6389 Send(reply_message_);
6390 redirect_query_ = 0; 6390 redirect_query_ = 0;
6391 reply_message_ = NULL; 6391 reply_message_ = NULL;
6392 } 6392 }
6393 6393
6394 void TestingAutomationProvider::OnRemoveProvider() { 6394 void TestingAutomationProvider::OnRemoveProvider() {
6395 if (g_browser_process) 6395 if (g_browser_process)
6396 g_browser_process->GetAutomationProviderList()->RemoveProvider(this); 6396 g_browser_process->GetAutomationProviderList()->RemoveProvider(this);
6397 } 6397 }
OLDNEW
« no previous file with comments | « no previous file | chrome/browser/background/background_mode_manager.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698