Index: chromecast/shell/browser/cast_browser_main_parts.cc |
diff --git a/chromecast/shell/browser/cast_browser_main_parts.cc b/chromecast/shell/browser/cast_browser_main_parts.cc |
index 1ac081807231e03ca0b08cedea2474d8317e1249..1da09377be0fbf30e243278eddc5d369eae98d4f 100644 |
--- a/chromecast/shell/browser/cast_browser_main_parts.cc |
+++ b/chromecast/shell/browser/cast_browser_main_parts.cc |
@@ -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 |