Commit 313c692b authored by gunsch@chromium.org's avatar gunsch@chromium.org

Removes CastBrowserMainParts::GetInstance.

This is currently unused and not necessary in future Chromecast code.

R=lcwu@chromium.org,jam@chromium.org
BUG=None

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

git-svn-id: svn://svn.chromium.org/chrome/trunk/src@284011 0039d316-1c4b-4281-b951-d872f2087c98
parent b86960e2
......@@ -14,9 +14,6 @@
namespace chromecast {
namespace shell {
// static
CastBrowserMainParts* CastBrowserMainParts::instance_ = NULL;
namespace {
struct DefaultCommandLineSwitch {
......@@ -50,13 +47,9 @@ CastBrowserMainParts::CastBrowserMainParts(
url_request_context_factory_(url_request_context_factory) {
CommandLine* command_line = CommandLine::ForCurrentProcess();
AddDefaultCommandLineSwitches(command_line);
DCHECK(instance_ == NULL);
instance_ = this;
}
CastBrowserMainParts::~CastBrowserMainParts() {
DCHECK(instance_ == this);
instance_ = NULL;
}
void CastBrowserMainParts::PreMainMessageLoopStart() {
......@@ -91,11 +84,5 @@ void CastBrowserMainParts::PostMainMessageLoopRun() {
browser_context_.reset();
}
// static
CastBrowserMainParts* CastBrowserMainParts::GetInstance() {
DCHECK(instance_ != NULL);
return instance_;
}
} // namespace shell
} // namespace chromecast
......@@ -43,9 +43,6 @@ class CastBrowserMainParts : public content::BrowserMainParts {
}
private:
static CastBrowserMainParts* GetInstance();
static CastBrowserMainParts* instance_;
scoped_ptr<CastBrowserContext> browser_context_;
scoped_ptr<CastService> cast_service_;
URLRequestContextFactory* const url_request_context_factory_;
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment