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

Issue 7377010: This change will split the result codes between content and chrome. (Closed)

Created:
9 years, 5 months ago by Dirk Pranke
Modified:
9 years, 5 months ago
Reviewers:
jam
CC:
chromium-reviews, joi+watch-content_chromium.org, jam
Visibility:
Public.

Description

This change will split the result codes between content and chrome. This adds a new file into chrome/common and does a lot of renaming. The current version is just a sketch of the headers, and nothing will compile. R=jam@chromium.org BUG=76699 TEST=everything still compiles and runs Committed: http://src.chromium.org/viewvc/chrome?view=rev&revision=92730

Patch Set 1 #

Patch Set 2 : actually rename the files #

Total comments: 4
Unified diffs Side-by-side diffs Delta from patch set Stats (+196 lines, -136 lines) Patch
M chrome/app/breakpad_win.cc View 1 3 chunks +3 lines, -3 lines 0 comments Download
M chrome/app/chrome_exe_main_win.cc View 1 1 chunk +1 line, -1 line 0 comments Download
M chrome/app/client_util.cc View 1 5 chunks +4 lines, -4 lines 0 comments Download
M chrome/app/dummy_main_functions.cc View 1 2 chunks +11 lines, -11 lines 0 comments Download
M chrome/browser/browser_main.cc View 1 13 chunks +18 lines, -17 lines 2 comments Download
M chrome/browser/browser_main_gtk.cc View 1 2 chunks +2 lines, -2 lines 0 comments Download
M chrome/browser/browser_main_mac.mm View 1 1 chunk +1 line, -1 line 0 comments Download
M chrome/browser/browser_main_win.cc View 1 6 chunks +9 lines, -8 lines 2 comments Download
M chrome/browser/extensions/extension_crash_recovery_browsertest.cc View 1 1 chunk +2 lines, -1 line 0 comments Download
M chrome/browser/extensions/extension_function.cc View 1 1 chunk +2 lines, -1 line 0 comments Download
M chrome/browser/first_run/first_run_import_observer.cc View 1 2 chunks +2 lines, -2 lines 0 comments Download
M chrome/browser/first_run/first_run_win.cc View 1 5 chunks +4 lines, -4 lines 0 comments Download
M chrome/browser/hang_monitor/hung_window_detector.cc View 1 1 chunk +1 line, -1 line 0 comments Download
M chrome/browser/process_singleton_win.cc View 1 1 chunk +1 line, -1 line 0 comments Download
M chrome/browser/renderer_host/web_cache_manager_browsertest.cc View 1 1 chunk +1 line, -1 line 0 comments Download
M chrome/browser/task_manager/task_manager.cc View 1 1 chunk +1 line, -1 line 0 comments Download
M chrome/browser/ui/browser_init.cc View 1 3 chunks +2 lines, -2 lines 0 comments Download
M chrome/browser/ui/browser_list.cc View 1 1 chunk +2 lines, -2 lines 0 comments Download
M chrome/browser/ui/cocoa/hung_renderer_controller.mm View 1 1 chunk +1 line, -1 line 0 comments Download
M chrome/browser/ui/gtk/hung_renderer_dialog_gtk.cc View 1 1 chunk +1 line, -1 line 0 comments Download
M chrome/browser/ui/views/hung_renderer_view.cc View 1 1 chunk +1 line, -1 line 0 comments Download
M chrome/browser/ui/views/uninstall_view.cc View 1 3 chunks +4 lines, -4 lines 0 comments Download
A chrome/common/chrome_result_codes.h View 1 1 chunk +78 lines, -0 lines 0 comments Download
M chrome/installer/setup/uninstall.cc View 1 7 chunks +11 lines, -11 lines 0 comments Download
M chrome/installer/util/google_chrome_distribution.cc View 1 3 chunks +4 lines, -4 lines 0 comments Download
M chrome/nacl/nacl_main.cc View 1 3 chunks +2 lines, -2 lines 0 comments Download
M chrome/service/service_child_process_host.cc View 1 1 chunk +1 line, -1 line 0 comments Download
M chrome/test/chrome_process_util.cc View 1 1 chunk +1 line, -1 line 0 comments Download
M content/browser/browser_message_filter.cc View 1 1 chunk +2 lines, -1 line 0 comments Download
M content/browser/child_process_launcher.cc View 1 1 chunk +1 line, -1 line 0 comments Download
M content/browser/child_process_security_policy_browsertest.cc View 1 1 chunk +1 line, -1 line 0 comments Download
M content/browser/handle_enumerator_win.cc View 1 1 chunk +1 line, -1 line 0 comments Download
M content/browser/renderer_host/browser_render_process_host.cc View 1 1 chunk +2 lines, -1 line 0 comments Download
M content/browser/worker_host/worker_process_host.cc View 1 1 chunk +1 line, -1 line 0 comments Download
M content/browser/zygote_host_linux.cc View 1 1 chunk +1 line, -1 line 0 comments Download
M content/browser/zygote_main_linux.cc View 1 1 chunk +1 line, -1 line 0 comments Download
M content/common/process_watcher_win.cc View 1 1 chunk +1 line, -1 line 0 comments Download
M content/common/result_codes.h View 1 1 chunk +14 lines, -38 lines 0 comments Download

Messages

Total messages: 4 (0 generated)
Dirk Pranke
This more what you had in mind?
9 years, 5 months ago (2011-07-14 22:38:36 UTC) #1
Dirk Pranke
9 years, 5 months ago (2011-07-15 19:26:35 UTC) #2
jam
lgtm with nits http://codereview.chromium.org/7377010/diff/3001/chrome/browser/browser_main.cc File chrome/browser/browser_main.cc (right): http://codereview.chromium.org/7377010/diff/3001/chrome/browser/browser_main.cc#newcode1558 chrome/browser/browser_main.cc:1558: static_cast<int>(content::RESULT_CODE_NORMAL_EXIT) : I don't think the ...
9 years, 5 months ago (2011-07-15 19:42:43 UTC) #3
Dirk Pranke
9 years, 5 months ago (2011-07-15 20:02:22 UTC) #4
http://codereview.chromium.org/7377010/diff/3001/chrome/browser/browser_main.cc
File chrome/browser/browser_main.cc (right):

http://codereview.chromium.org/7377010/diff/3001/chrome/browser/browser_main....
chrome/browser/browser_main.cc:1558:
static_cast<int>(content::RESULT_CODE_NORMAL_EXIT) :
On 2011/07/15 19:42:43, John Abd-El-Malek wrote:
> I don't think the casts are needed?

content::ResultCode and chrome::ResultCode are two different enum types; both
arms of the conditional expression have to be the same type, and the compiler
doesn't know how to automatically cast one to the other. (At least, I got a
compiler warning about this and it matches my understanding :). Dunno if there's
a better way to work around this.

http://codereview.chromium.org/7377010/diff/3001/chrome/browser/browser_main_...
File chrome/browser/browser_main_win.cc (right):

http://codereview.chromium.org/7377010/diff/3001/chrome/browser/browser_main_...
chrome/browser/browser_main_win.cc:238: // the browser.
On 2011/07/15 19:42:43, John Abd-El-Malek wrote:
> nit: this style of comments is not common in chrome, i.e. just put it all on
one
> line

Done.

Powered by Google App Engine
This is Rietveld 408576698