Split the dismiss call for C++ and java
BUG=283720    
Test=Run InfoBarTest and TranslateInfoBarTest which already contain tests for these cases
Tried manually all cases as well.

Review URL: https://codereview.chromium.org/26263002

git-svn-id: svn://svn.chromium.org/chrome/trunk/src@229095 0039d316-1c4b-4281-b951-d872f2087c98
SVN changes up to revision 229095