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

Unified Diff: chrome/renderer/user_script_slave.cc

Issue 3210007: Add support for a "split" incognito behavior for extensions. (Closed)
Patch Set: latest Created 10 years, 4 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/user_script_slave.cc
diff --git a/chrome/renderer/user_script_slave.cc b/chrome/renderer/user_script_slave.cc
index 7a2f52185683f8ac047f0f82727933397a126d91..bbaf6436729def482eef2eb3caa4d436ca4afb1e 100644
--- a/chrome/renderer/user_script_slave.cc
+++ b/chrome/renderer/user_script_slave.cc
@@ -76,7 +76,7 @@ void UserScriptSlave::GetActiveExtensions(std::set<std::string>* extension_ids)
bool UserScriptSlave::UpdateScripts(base::SharedMemoryHandle shared_memory) {
scripts_.clear();
- bool only_inject_incognito = RenderThread::current()->is_incognito_process();
+ bool only_inject_incognito = RenderThread::current()->IsIncognitoProcess();
// Create the shared memory object (read only).
shared_memory_.reset(new base::SharedMemory(shared_memory, true));
@@ -176,7 +176,7 @@ bool UserScriptSlave::UpdateScripts(base::SharedMemoryHandle shared_memory) {
void UserScriptSlave::InsertInitExtensionCode(
std::vector<WebScriptSource>* sources, const std::string& extension_id) {
DCHECK(sources);
- bool incognito = RenderThread::current()->is_incognito_process();
+ bool incognito = RenderThread::current()->IsIncognitoProcess();
sources->insert(sources->begin(), WebScriptSource(WebString::fromUTF8(
StringPrintf(kInitExtension, extension_id.c_str(),
incognito ? "true" : "false"))));

Powered by Google App Engine
This is Rietveld 408576698