Update To 11.40.268.0
[platform/framework/web/crosswalk.git] / src / chrome / browser / ui / android / tab_model / tab_model_list.cc
index 42e24ec..04985b7 100644 (file)
@@ -52,8 +52,7 @@ TabModel* TabModelList::GetTabModelForWebContents(
       i != TabModelList::end(); ++i) {
     TabModel* model = *i;
     for (int index = 0; index < model->GetTabCount(); index++) {
-      TabAndroid* tab = model->GetTabAt(index);
-      if (web_contents == tab->web_contents())
+      if (web_contents == model->GetWebContentsAt(index))
         return model;
     }
   }