summaryrefslogtreecommitdiffstats
path: root/chrome/browser/automation
diff options
context:
space:
mode:
authorcalamity@chromium.org <calamity@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2014-01-10 06:48:36 +0000
committercalamity@chromium.org <calamity@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2014-01-10 06:48:36 +0000
commita9f74a6b78ecfb8f868d19d99e43a5679bb95ad4 (patch)
tree2d51f251c016ad809bd225771e8e90129779abde /chrome/browser/automation
parent9eedbeeee1feeb6a3bbdae8826f21822835f9b30 (diff)
downloadchromium_src-a9f74a6b78ecfb8f868d19d99e43a5679bb95ad4.zip
chromium_src-a9f74a6b78ecfb8f868d19d99e43a5679bb95ad4.tar.gz
chromium_src-a9f74a6b78ecfb8f868d19d99e43a5679bb95ad4.tar.bz2
Sync the launch type pref for apps.
This CL syncs the launch type pref for apps by adding a property to app_specifics.proto. The sync data is processed in ExtensionSyncService. extensions::SetLaunchType has been changed to take an ExtensionService so that it is able to sync the pref change when a launch type is updated. A value has been added to the LaunchType enum to represent an invalid launch type preference. BUG=181576 TBR=sky@chromium.org Review URL: https://codereview.chromium.org/93883004 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@244112 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'chrome/browser/automation')
-rw-r--r--chrome/browser/automation/testing_automation_provider.cc3
1 files changed, 1 insertions, 2 deletions
diff --git a/chrome/browser/automation/testing_automation_provider.cc b/chrome/browser/automation/testing_automation_provider.cc
index 42a4b1e..b0293f4 100644
--- a/chrome/browser/automation/testing_automation_provider.cc
+++ b/chrome/browser/automation/testing_automation_provider.cc
@@ -4346,8 +4346,7 @@ void TestingAutomationProvider::SetAppLaunchType(
return;
}
- extensions::SetLaunchType(
- service->extension_prefs(), extension->id(), launch_type);
+ extensions::SetLaunchType(service, extension->id(), launch_type);
reply.SendSuccess(NULL);
}