forked from chromium/chromium
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
DCHECK..ON(BrowserThread::UI) -> DCHECK(thread_checker_.CalledOnValid…
…Thread()) This changelist removes one unnecessary dependency from chrome/browser/chromeos/drive to content/public/browser/browser_thread.h - Where possible DCHECK_CURRENTLY_ON(BrowserThread::UI) is replaced with DCHECK(thread_checker_.CalledOnValidThread()) - The new DCHECK is in theory more relaxed than the original DCHECK, but in practice is no different, assumming that objects (and therefore the newly added base::ThreadChecker field) are created from the UI thread (in practice this is enforced by DCHECK_CURRENTLY_ON(BrowserThread::UI) in the constructor and methods of DriveIntegrationService). - The old DCHECK is left untouched in places that do not have to be reused outside of a browser (most notably - browser-specific file_system_util.cc and most of drive_integration_service.cc). - The old DCHECK is removed without adding the new DCHECK in a few places where base::ThreadChecker could not be used in a straightforward way (i.e. in standalone functions or callbacks). BUG=498951 TEST=built (GYP_DEFINES="... chromeos=1") and run unit_tests gyp/ninja target from chrome/chrome_tests_unit.gypi Review URL: https://codereview.chromium.org/1177823002 Cr-Commit-Position: refs/heads/master@{#334127}
- Loading branch information
1 parent
28fcf14
commit 037c10b
Showing
51 changed files
with
333 additions
and
338 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.