| Index: chrome/browser/extensions/extension_cookies_helpers.cc | 
| diff --git a/chrome/browser/extensions/extension_cookies_helpers.cc b/chrome/browser/extensions/extension_cookies_helpers.cc | 
| index acd58e6e1831db7651715f201749d59a9220b857..42e2fae4ef6448413b2b6adaa3eb9253595fd1a1 100644 | 
| --- a/chrome/browser/extensions/extension_cookies_helpers.cc | 
| +++ b/chrome/browser/extensions/extension_cookies_helpers.cc | 
| @@ -30,7 +30,8 @@ Profile* ChooseProfileFromStoreId(const std::string& store_id, | 
| bool include_incognito) { | 
| DCHECK(profile); | 
| bool allow_original = !profile->IsOffTheRecord(); | 
| -  bool allow_incognito = profile->IsOffTheRecord() || include_incognito; | 
| +  bool allow_incognito = profile->IsOffTheRecord() || | 
| +      (include_incognito && profile->HasOffTheRecordProfile()); | 
| if (store_id == kOriginalProfileStoreId && allow_original) | 
| return profile->GetOriginalProfile(); | 
| if (store_id == kOffTheRecordProfileStoreId && allow_incognito) | 
|  |