Upstream version 5.34.104.0
[platform/framework/web/crosswalk.git] / src / chrome / browser / ui / views / location_bar / location_icon_view.cc
index 76d14c0..9ac13a3 100644 (file)
@@ -26,12 +26,14 @@ bool LocationIconView::OnMousePressed(const ui::MouseEvent& event) {
 }
 
 void LocationIconView::OnMouseReleased(const ui::MouseEvent& event) {
-  if (!chrome::ShouldDisplayOriginChip())
+  if (!chrome::ShouldDisplayOriginChip() &&
+      !chrome::ShouldDisplayOriginChipV2())
     page_info_helper_.ProcessEvent(event);
 }
 
 void LocationIconView::OnGestureEvent(ui::GestureEvent* event) {
   if (!chrome::ShouldDisplayOriginChip() &&
+      !chrome::ShouldDisplayOriginChipV2() &&
       (event->type() == ui::ET_GESTURE_TAP)) {
     page_info_helper_.ProcessEvent(*event);
     event->SetHandled();