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

Unified Diff: chrome/browser/profiles/profile_io_data.cc

Issue 1981273004: [Cleanup] Removed unused debugging code. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 4 years, 7 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
Index: chrome/browser/profiles/profile_io_data.cc
diff --git a/chrome/browser/profiles/profile_io_data.cc b/chrome/browser/profiles/profile_io_data.cc
index 24d9360a6b7c578a4c5069bf0f2e85b2a42380c2..934a43ec2c0e9dadfd85ca7b85121ef0d24c98d8 100644
--- a/chrome/browser/profiles/profile_io_data.cc
+++ b/chrome/browser/profiles/profile_io_data.cc
@@ -543,8 +543,6 @@ void ProfileIOData::InitializeOnUIThread(Profile* profile) {
prefs::kIncognitoModeAvailability, pref_service);
incognito_availibility_pref_.MoveToThread(io_task_runner);
- initialized_on_UI_thread_ = true;
-
// We need to make sure that content initializes its own data structures that
// are associated with each ResourceContext because we might post this
// object to the IO thread after this function.
@@ -617,7 +615,6 @@ ProfileIOData::ProfileIOData(Profile::ProfileType profile_type)
use_system_key_slot_(false),
#endif
resource_context_(new ResourceContext(this)),
- initialized_on_UI_thread_(false),
profile_type_(profile_type) {
DCHECK_CURRENTLY_ON(BrowserThread::UI);
}
@@ -1017,12 +1014,7 @@ void ProfileIOData::Init(
// functions have been provided to assist in common operations.
DCHECK_CURRENTLY_ON(BrowserThread::IO);
DCHECK(!initialized_);
-
- // TODO(jhawkins): Remove once crbug.com/102004 is fixed.
- CHECK(initialized_on_UI_thread_);
-
- // TODO(jhawkins): Return to DCHECK once crbug.com/102004 is fixed.
- CHECK(profile_params_.get());
+ DCHECK(profile_params_.get());
IOThread* const io_thread = profile_params_->io_thread;
IOThread::Globals* const io_thread_globals = io_thread->globals();
« no previous file with comments | « chrome/browser/profiles/profile_io_data.h ('k') | ios/chrome/browser/browser_state/chrome_browser_state_io_data.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698