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

Unified Diff: chrome/renderer/pepper/ppb_nacl_private_impl.cc

Issue 10826107: Add an IPC for PNaCl to check if the session is incognito, before deciding (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: bump buffer more Created 8 years, 5 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
Index: chrome/renderer/pepper/ppb_nacl_private_impl.cc
diff --git a/chrome/renderer/pepper/ppb_nacl_private_impl.cc b/chrome/renderer/pepper/ppb_nacl_private_impl.cc
index fb4d5f967b3c2998dd9ed8b5488a8d6b923a20fc..6c7401ad7ec3b40405f05d55dd2ce78966b92dbd 100644
--- a/chrome/renderer/pepper/ppb_nacl_private_impl.cc
+++ b/chrome/renderer/pepper/ppb_nacl_private_impl.cc
@@ -307,6 +307,17 @@ PP_FileHandle CreateTemporaryFile(PP_Instance instance) {
return handle;
}
+PP_Bool IsOffTheRecord() {
+ bool is_off_the_record;
+ content::RenderThread::Get()->Send(new ChromeViewHostMsg_IsOffTheRecord(
+ &is_off_the_record));
+ if (is_off_the_record) {
brettw 2012/08/02 19:50:47 This should just be: return PP_FromBool(is_off_t
jvoung (off chromium) 2012/08/02 22:26:08 Done. Also used the renderer bit.
+ return PP_TRUE;
+ } else {
+ return PP_FALSE;
+ }
+}
+
const PPB_NaCl_Private nacl_interface = {
&LaunchSelLdr,
&StartPpapiProxy,
@@ -315,7 +326,8 @@ const PPB_NaCl_Private nacl_interface = {
&EnableBackgroundSelLdrLaunch,
&BrokerDuplicateHandle,
&GetReadonlyPnaclFD,
- &CreateTemporaryFile
+ &CreateTemporaryFile,
+ &IsOffTheRecord
};
} // namespace

Powered by Google App Engine
This is Rietveld 408576698