Fixes the issue that CharacterComposer always update the composition text (CrOS).

BUG=260347
TEST=Done manually.

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

git-svn-id: svn://svn.chromium.org/chrome/trunk/src@248860 0039d316-1c4b-4281-b951-d872f2087c98
cc: Use ResourceProvider::Resouce::type to check the type of the given resource.

Currently, some code uses the type variable to check the type of
the given resource, while other code uses the shared_bitmap,
pixels or mailbox variable to check the same condition.

This CL makes all code use the type variable for this purpose.

In addition, this CL clarify texture_pool can be non-null only if
the type is Texture and the origin is Internal.

In addition, add several DCHECKs to increase readability.

BUG=337519

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

git-svn-id: svn://svn.chromium.org/chrome/trunk/src@248861 0039d316-1c4b-4281-b951-d872f2087c98
Switch to EmbeddedTestServer to avoid flakiness.

Flake at http://build.chromium.org/p/chromium.memory.fyi/builders/Chromium%20OS%20%28valgrind%29%284%29/builds/24523/steps/memory%20test%3A%20unit/logs/stdio

[ RUN      ] WebRequestConditionAttributeTest.ResponseHeaders
[4593:4593:0203/083335:1568179503:ERROR:local_test_server_posix.cc(76)] poll() timed out; bytes_read=0
[4593:4593:0203/083335:1568183325:ERROR:local_test_server_posix.cc(159)] Could not read server_data_len
HTTP server started on 127.0.0.1:55369...
sending server_data: {"host": "127.0.0.1", "port": 55369} (36 bytes)
../../chrome/browser/extensions/api/declarative_webrequest/webrequest_condition_attribute_unittest.cc:508: Failure
Value of: test_server.Start()
  Actual: false
  Expected: true
  [  FAILED  ] WebRequestConditionAttributeTest.ResponseHeaders (11177 ms)

BUG=

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

git-svn-id: svn://svn.chromium.org/chrome/trunk/src@248862 0039d316-1c4b-4281-b951-d872f2087c98
SVN changes up to revision 248861
Accept smaller icons for the extension uninstall dialog for bookmark apps.

The extension uninstall dialog currently only accepts 128x128 or larger
icons. Bookmark apps may not have this icon size. Since the 48x48 icon is
shown in the launcher, bookmark apps should use that icon in the extension
uninstall dialog to prevent the case of having an icon in the launcher, but
not in the uninstall dialog.

BUG=318607

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

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