summaryrefslogtreecommitdiffstats
path: root/extensions/common/extension.h
diff options
context:
space:
mode:
authormfoltz <mfoltz@chromium.org>2016-01-13 10:16:58 -0800
committerCommit bot <commit-bot@chromium.org>2016-01-13 18:18:03 +0000
commit96f329c812733fb19bce6099f3b260d44362c3a0 (patch)
treec381c9fb896332ef048807753b9feb4e522e2f40 /extensions/common/extension.h
parenta548300f5e58e09de3d8dea2d505c8642fffed6e (diff)
downloadchromium_src-96f329c812733fb19bce6099f3b260d44362c3a0.zip
chromium_src-96f329c812733fb19bce6099f3b260d44362c3a0.tar.gz
chromium_src-96f329c812733fb19bce6099f3b260d44362c3a0.tar.bz2
Implements migration support for Cast extension users when the Media Router is enabled.
Existing Cast extension users will see the Cast component action in the toolbar. Media Router users who later install the Cast extension will have the extension auto-unloaded and the component action added to the toolbar. Adds MIGRATED_TO_COMPONENT extension unload reason, to track when the Cast extension was unloaded because the Media Router was enabled. Note that there are two public Cast extensions and this design handles both. BUG=537289 TESTING=Unit tests and manual tests of extension install flows with MR enabled and disabled Review URL: https://codereview.chromium.org/1368303003 Cr-Commit-Position: refs/heads/master@{#369217}
Diffstat (limited to 'extensions/common/extension.h')
-rw-r--r--extensions/common/extension.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/extensions/common/extension.h b/extensions/common/extension.h
index 2363841..ec71517 100644
--- a/extensions/common/extension.h
+++ b/extensions/common/extension.h
@@ -554,6 +554,8 @@ struct UnloadedExtensionInfo {
REASON_BLACKLIST, // Extension has been blacklisted.
REASON_PROFILE_SHUTDOWN, // Profile is being shut down.
REASON_LOCK_ALL, // All extensions for the profile are blocked.
+ REASON_MIGRATED_TO_COMPONENT, // Extension is being migrated to a component
+ // action.
};
Reason reason;