| Index: chrome/browser/extensions/extension_tabs_module.cc
|
| diff --git a/chrome/browser/extensions/extension_tabs_module.cc b/chrome/browser/extensions/extension_tabs_module.cc
|
| index e39d1f5e9c5fac306e0d6a34927de2e1a587d53a..4ce2cd59defc1554df6085feafb03df67f81f662 100644
|
| --- a/chrome/browser/extensions/extension_tabs_module.cc
|
| +++ b/chrome/browser/extensions/extension_tabs_module.cc
|
| @@ -880,6 +880,11 @@ bool MoveTabFunction::RunImpl() {
|
| return false;
|
| }
|
|
|
| + if (target_browser->profile() != source_browser->profile()) {
|
| + error_ = keys::kCanOnlyMoveTabsWithinSameProfileError;
|
| + return false;
|
| + }
|
| +
|
| // If windowId is different from the current window, move between windows.
|
| if (ExtensionTabUtil::GetWindowId(target_browser) !=
|
| ExtensionTabUtil::GetWindowId(source_browser)) {
|
|
|