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

Unified Diff: chrome_frame/test_utils.cc

Issue 9533009: Don't crash if the CF Tests are not running as admin. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 8 years, 10 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 | « no previous file | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome_frame/test_utils.cc
diff --git a/chrome_frame/test_utils.cc b/chrome_frame/test_utils.cc
index 4aca8e7d2df82795bba15cf6cfd5507266199c22..596b43be3ff391e776a197f69baa83bbdb705823 100644
--- a/chrome_frame/test_utils.cc
+++ b/chrome_frame/test_utils.cc
@@ -123,10 +123,11 @@ void ScopedChromeFrameRegistrar::DoRegistration(
}
if (exit_code != 0) {
if (registration_operation == REGISTER) {
- LOG(FATAL)
+ LOG(ERROR)
<< "DLL registration failed (exit code: 0x" << std::hex << exit_code
<< ", command: " << registration_command
<< "). Make sure you are running as Admin.";
+ ::ExitProcess(1);
} else {
LOG(WARNING)
<< "DLL unregistration failed (exit code: 0x" << std::hex << exit_code
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698