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

Unified Diff: chrome_frame/chrome_launcher_utils.cc

Issue 8013001: Remove the \servers build output directory and place Chrome Frame parts into the root output fold... (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src/
Patch Set: Created 9 years, 3 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 | « chrome_frame/chrome_frame_launcher.gyp ('k') | chrome_frame/test/perf/chrome_frame_perftest.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome_frame/chrome_launcher_utils.cc
===================================================================
--- chrome_frame/chrome_launcher_utils.cc (revision 102100)
+++ chrome_frame/chrome_launcher_utils.cc (working copy)
@@ -28,21 +28,16 @@
FilePath module_path;
if (PathService::Get(base::FILE_MODULE, &module_path)) {
FilePath current_dir = module_path.DirName();
- FilePath same_dir_path = current_dir.Append(
+ FilePath chrome_launcher = current_dir.Append(
chrome_launcher::kLauncherExeBaseName);
- if (file_util::PathExists(same_dir_path)) {
- return new CommandLine(same_dir_path);
- } else {
- FilePath servers_path = current_dir.Append(L"servers").Append(
- chrome_launcher::kLauncherExeBaseName);
- DCHECK(file_util::PathExists(servers_path)) <<
- "What module is this? It's not in 'servers' or main output dir.";
- return new CommandLine(servers_path);
+ if (file_util::PathExists(chrome_launcher)) {
+ return new CommandLine(chrome_launcher);
}
- } else {
- NOTREACHED();
- return NULL;
}
+
+ NOTREACHED() << "Could not find " << chrome_launcher::kLauncherExeBaseName
+ << " in output dir.";
+ return NULL;
grt (UTC plus 2) 2011/09/23 13:40:05 this NULL will call callers to explode in release
robertshield 2011/09/23 20:31:13 Very well, I expect better cartwheels though.
}
} // namespace
« no previous file with comments | « chrome_frame/chrome_frame_launcher.gyp ('k') | chrome_frame/test/perf/chrome_frame_perftest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698