| Index: chrome/browser/extensions/extension_cookies_api.cc
|
| diff --git a/chrome/browser/extensions/extension_cookies_api.cc b/chrome/browser/extensions/extension_cookies_api.cc
|
| index f0ee073f06852e3ae69dcf695df4d91e6de3a0be..0f6160290c74abb170b5b1fcf8127f2a229b1cef 100644
|
| --- a/chrome/browser/extensions/extension_cookies_api.cc
|
| +++ b/chrome/browser/extensions/extension_cookies_api.cc
|
| @@ -425,7 +425,7 @@ bool GetAllCookieStoresFunction::RunImpl() {
|
| scoped_ptr<ListValue> original_tab_ids(new ListValue());
|
| Profile* incognito_profile = NULL;
|
| scoped_ptr<ListValue> incognito_tab_ids;
|
| - if (include_incognito()) {
|
| + if (include_incognito() && profile()->HasOffTheRecordProfile()) {
|
| incognito_profile = profile()->GetOffTheRecordProfile();
|
| if (incognito_profile)
|
| incognito_tab_ids.reset(new ListValue());
|
|
|