Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(3840)

Unified Diff: chrome/browser/ui/android/tab_model/tab_model_list.cc

Issue 23792002: Set the WindowId of the SessionTabHelper (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Address Comment Created 7 years, 3 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « chrome/browser/android/tab_android.cc ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/browser/ui/android/tab_model/tab_model_list.cc
diff --git a/chrome/browser/ui/android/tab_model/tab_model_list.cc b/chrome/browser/ui/android/tab_model/tab_model_list.cc
index 00dc2884ecb0c2f42e717019fe831f9f5ba0de2c..79aa098cc5560b34279b57da2cfc85ac7401b274 100644
--- a/chrome/browser/ui/android/tab_model/tab_model_list.cc
+++ b/chrome/browser/ui/android/tab_model/tab_model_list.cc
@@ -50,8 +50,11 @@ TabModel* TabModelList::GetTabModelWithProfile(
for (TabModelList::const_iterator i = TabModelList::begin();
i != TabModelList::end(); ++i) {
- if (profile->IsSameProfile((*i)->GetProfile()))
+ Profile* model_profile = (*i)->GetProfile();
+ if (profile->IsSameProfile(model_profile) &&
+ profile->IsOffTheRecord() == model_profile->IsOffTheRecord()) {
return *i;
+ }
}
return NULL;
« no previous file with comments | « chrome/browser/android/tab_android.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698