summaryrefslogtreecommitdiffstats
path: root/chrome/renderer/renderer_glue.cc
diff options
context:
space:
mode:
authormlloyd@chromium.org <mlloyd@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2010-06-28 20:38:23 +0000
committermlloyd@chromium.org <mlloyd@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2010-06-28 20:38:23 +0000
commitec52f0144829c3f0998a7a170c0921760f67a766 (patch)
treea255f4675529245ed7bd94b2611487942c0e7571 /chrome/renderer/renderer_glue.cc
parentc9aa283d307ab7f8069da1f907ce6cd20a53f64b (diff)
downloadchromium_src-ec52f0144829c3f0998a7a170c0921760f67a766.zip
chromium_src-ec52f0144829c3f0998a7a170c0921760f67a766.tar.gz
chromium_src-ec52f0144829c3f0998a7a170c0921760f67a766.tar.bz2
Show a warning message if the cache might not be cleared correctly between runs.
Review URL: http://codereview.chromium.org/2834025 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@51042 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'chrome/renderer/renderer_glue.cc')
-rw-r--r--chrome/renderer/renderer_glue.cc5
1 files changed, 5 insertions, 0 deletions
diff --git a/chrome/renderer/renderer_glue.cc b/chrome/renderer/renderer_glue.cc
index 07301b5..72a7629 100644
--- a/chrome/renderer/renderer_glue.cc
+++ b/chrome/renderer/renderer_glue.cc
@@ -15,6 +15,7 @@
#include "app/clipboard/clipboard.h"
#include "app/clipboard/scoped_clipboard_writer.h"
#include "app/resource_bundle.h"
+#include "base/command_line.h"
#include "base/file_version_info.h"
#include "base/ref_counted.h"
#include "base/string_util.h"
@@ -281,4 +282,8 @@ std::string GetProductVersion() {
return product;
}
+bool IsSingleProcess() {
+ return CommandLine::ForCurrentProcess()->HasSwitch(switches::kSingleProcess);
+}
+
} // namespace webkit_glue