summaryrefslogtreecommitdiffstats
path: root/base/logging.h
diff options
context:
space:
mode:
authorananta@chromium.org <ananta@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2013-02-27 22:04:00 +0000
committerananta@chromium.org <ananta@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2013-02-27 22:04:00 +0000
commitf01b88a09dc2db6301525eda660fdcca7ad15245 (patch)
tree7c517de36917450e4375b5dea53c7170972feaeb /base/logging.h
parente78e271a20e28d07ac69a0813aa970c8840f5921 (diff)
downloadchromium_src-f01b88a09dc2db6301525eda660fdcca7ad15245.zip
chromium_src-f01b88a09dc2db6301525eda660fdcca7ad15245.tar.gz
chromium_src-f01b88a09dc2db6301525eda660fdcca7ad15245.tar.bz2
Ensure that logging works in the GPU process when the --enable-logging and --v switches are specified.
This stopped working a long time back due to changes made to launch the GPU process under low integrity mode on Vista+ which prevents write up operations on the files. Fix is to add a sandbox policy allowing access to the log file and also pass the user-data-dir to the GPU process. When the GPU process attempts to open the log file our intercepts kick in and broker the call to the browser where the file is opened. I had to add an accessor to the logging code to return the log file name. Fixes bug https://code.google.com/p/chromium/issues/detail?id=178326 BUG=178326 R=jschuh, cpu Review URL: https://chromiumcodereview.appspot.com/12319107 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@185055 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'base/logging.h')
-rw-r--r--base/logging.h5
1 files changed, 5 insertions, 0 deletions
diff --git a/base/logging.h b/base/logging.h
index 14e0426..79fa4a3 100644
--- a/base/logging.h
+++ b/base/logging.h
@@ -926,6 +926,11 @@ BASE_EXPORT void RawLog(int level, const char* message);
logging::RawLog(logging::LOG_FATAL, "Check failed: " #condition "\n"); \
} while (0)
+#if defined(OS_WIN)
+// Returns the default log file path.
+BASE_EXPORT std::wstring GetLogFileFullPath();
+#endif
+
} // namespace logging
// These functions are provided as a convenience for logging, which is where we