[Android] Don't try to display ActionMode when not in view hierarchy
commit642b77ff49b257bbef2afee1bf00faede77cafad
authorcjhopman@chromium.org <cjhopman@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>
Tue, 23 Apr 2013 22:42:50 +0000 (23 22:42 +0000)
committercjhopman@chromium.org <cjhopman@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>
Tue, 23 Apr 2013 22:42:50 +0000 (23 22:42 +0000)
treeacb1f53f7c6a330c74a57cebc2a0fc157176d997
parentbb3ddba722a963dab9e8aa38023b4cb9afc6ade2
[Android] Don't try to display ActionMode when not in view hierarchy

On JB+, startActionMode will return null when getParent() returns null. On ICS,
it will throw an NPE. Only call startActionMode when getParent() != null.

BUG=180036

Review URL: https://chromiumcodereview.appspot.com/13933033

git-svn-id: svn://svn.chromium.org/chrome/trunk/src@195929 0039d316-1c4b-4281-b951-d872f2087c98
content/public/android/java/src/org/chromium/content/browser/ContentViewCore.java