Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(143)

Unified Diff: chromecast/shell/browser/cast_browser_main_parts.cc

Issue 396213009: Removes CastBrowserMainParts::GetInstance. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: rebase Created 6 years, 5 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « chromecast/shell/browser/cast_browser_main_parts.h ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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
« no previous file with comments | « chromecast/shell/browser/cast_browser_main_parts.h ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698