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

Unified Diff: content/common/set_process_title_linux.cc

Issue 7857019: Basic scaffolding for a "content shell", i.e. test browser over the content module. (Closed) Base URL: svn://chrome-svn/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 | « content/common/set_process_title_linux.h ('k') | content/content.gyp » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: content/common/set_process_title_linux.cc
===================================================================
--- content/common/set_process_title_linux.cc (revision 100566)
+++ content/common/set_process_title_linux.cc (working copy)
@@ -103,7 +103,7 @@
// A version of this built into glibc would not need this function, since
// it could stash the argv pointer in __libc_start_main(). But we need it.
-void setproctitle_init(char** main_argv) {
+void setproctitle_init(const char** main_argv) {
if (g_main_argv)
return;
@@ -111,5 +111,5 @@
// Check that the argv array is in fact on the same page of memory
// as the environment array just as an added measure of protection.
if (((uintptr_t) environ) / page_size == ((uintptr_t) main_argv) / page_size)
- g_main_argv = main_argv;
+ g_main_argv = const_cast<char**>(main_argv);
}
« no previous file with comments | « content/common/set_process_title_linux.h ('k') | content/content.gyp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698