diff options
author | jam@chromium.org <jam@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2012-02-21 03:57:42 +0000 |
---|---|---|
committer | jam@chromium.org <jam@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2012-02-21 03:57:42 +0000 |
commit | 314c3e2d86a4595db7b1ab02b2acd4decf21d65f (patch) | |
tree | 593431d4dad2fa3c944d8e8f97da3f6fc56140f6 /chrome/test | |
parent | c537090136d23d0064488c27de3bb2ba0f1ac120 (diff) | |
download | chromium_src-314c3e2d86a4595db7b1ab02b2acd4decf21d65f.zip chromium_src-314c3e2d86a4595db7b1ab02b2acd4decf21d65f.tar.gz chromium_src-314c3e2d86a4595db7b1ab02b2acd4decf21d65f.tar.bz2 |
Remove getters for HTML5 related objects from the ResourceContext interface. Half of them weren't used by chrome, so they can be hidden from chrome. The rest were accessed by chrome, but we don't need every embedder to store this data on their ResourceContext implementation. Instead have content associate the data itself to simplify the work for embedders.
BUG=98716
Review URL: https://chromiumcodereview.appspot.com/9425026
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@122790 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'chrome/test')
-rw-r--r-- | chrome/test/base/testing_profile.cc | 4 | ||||
-rw-r--r-- | chrome/test/base/testing_profile.h | 3 |
2 files changed, 6 insertions, 1 deletions
diff --git a/chrome/test/base/testing_profile.cc b/chrome/test/base/testing_profile.cc index 30f6b39..d2821e7 100644 --- a/chrome/test/base/testing_profile.cc +++ b/chrome/test/base/testing_profile.cc @@ -628,7 +628,9 @@ net::URLRequestContextGetter* TestingProfile::GetRequestContextForIsolatedApp( } content::ResourceContext* TestingProfile::GetResourceContext() { - return content::MockResourceContext::GetInstance(); + if (!resource_context_.get()) + resource_context_.reset(new content::MockResourceContext()); + return resource_context_.get(); } HostContentSettingsMap* TestingProfile::GetHostContentSettingsMap() { diff --git a/chrome/test/base/testing_profile.h b/chrome/test/base/testing_profile.h index d39f3a2..f4db9ab 100644 --- a/chrome/test/base/testing_profile.h +++ b/chrome/test/base/testing_profile.h @@ -16,6 +16,7 @@ #include "content/browser/appcache/chrome_appcache_service.h" namespace content { +class MockResourceContext; class SpeechInputPreferences; } @@ -384,6 +385,8 @@ class TestingProfile : public Profile { // testing. ProfileDependencyManager* profile_dependency_manager_; + scoped_ptr<content::MockResourceContext> resource_context_; + // Weak pointer to a delegate for indicating that a profile was created. Delegate* delegate_; }; |