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

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: 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
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 5619 matching lines...) Expand 10 before | Expand all | Expand 10 after
5630 TabContents* old_contents = browser->GetSelectedTabContents(); 5630 TabContents* old_contents = browser->GetSelectedTabContents();
5631 if (!old_contents) { 5631 if (!old_contents) {
5632 AutomationJSONReply(this, reply_message).SendError( 5632 AutomationJSONReply(this, reply_message).SendError(
5633 "Cannot identify selected tab contents."); 5633 "Cannot identify selected tab contents.");
5634 return; 5634 return;
5635 } 5635 }
5636 5636
5637 // This observer will delete itself. 5637 // This observer will delete itself.
5638 new AppLaunchObserver(&old_contents->controller(), this, reply_message, 5638 new AppLaunchObserver(&old_contents->controller(), this, reply_message,
5639 launch_container); 5639 launch_container);
5640 Browser::OpenApplication(profile(), extension, launch_container, 5640 Browser::OpenApplication(profile(), extension, launch_container, GURL(),
5641 CURRENT_TAB); 5641 CURRENT_TAB);
5642 } 5642 }
5643 5643
5644 // Sample JSON input: { "command": "SetAppLaunchType", 5644 // Sample JSON input: { "command": "SetAppLaunchType",
5645 // "id": "ahfgeienlihckogmohjhadlkjgocpleb", 5645 // "id": "ahfgeienlihckogmohjhadlkjgocpleb",
5646 // "launch_type": "pinned" } 5646 // "launch_type": "pinned" }
5647 // Sample JSON output: {} 5647 // Sample JSON output: {}
5648 void TestingAutomationProvider::SetAppLaunchType( 5648 void TestingAutomationProvider::SetAppLaunchType(
5649 Browser* browser, 5649 Browser* browser,
5650 DictionaryValue* args, 5650 DictionaryValue* args,
(...skipping 732 matching lines...) Expand 10 before | Expand all | Expand 10 after
6383 6383
6384 Send(reply_message_); 6384 Send(reply_message_);
6385 redirect_query_ = 0; 6385 redirect_query_ = 0;
6386 reply_message_ = NULL; 6386 reply_message_ = NULL;
6387 } 6387 }
6388 6388
6389 void TestingAutomationProvider::OnRemoveProvider() { 6389 void TestingAutomationProvider::OnRemoveProvider() {
6390 if (g_browser_process) 6390 if (g_browser_process)
6391 g_browser_process->GetAutomationProviderList()->RemoveProvider(this); 6391 g_browser_process->GetAutomationProviderList()->RemoveProvider(this);
6392 } 6392 }
OLDNEW
« no previous file with comments | « no previous file | chrome/browser/background/background_mode_manager.cc » ('j') | chrome/browser/ui/browser.h » ('J')

Powered by Google App Engine
This is Rietveld 408576698