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

Unified Diff: chrome/browser/android/vr_shell/vr_shell.cc

Issue 2911943002: [vr] Add incognito coloring (Closed)
Patch Set: Created 3 years, 7 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 | « chrome/browser/android/vr_shell/vr_gl_thread.cc ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/browser/android/vr_shell/vr_shell.cc
diff --git a/chrome/browser/android/vr_shell/vr_shell.cc b/chrome/browser/android/vr_shell/vr_shell.cc
index f59521a07f16c5e3a77d17d4b2adc101c2bf77d7..332ed1a1b96d266bf755c49e93fbdd9b51b01cb6 100644
--- a/chrome/browser/android/vr_shell/vr_shell.cc
+++ b/chrome/browser/android/vr_shell/vr_shell.cc
@@ -34,6 +34,7 @@
#include "chrome/browser/android/vr_shell/vr_web_contents_observer.h"
#include "chrome/browser/media/webrtc/media_capture_devices_dispatcher.h"
#include "chrome/browser/media/webrtc/media_stream_capture_indicator.h"
+#include "content/public/browser/browser_context.h"
#include "content/public/browser/browser_thread.h"
#include "content/public/browser/navigation_controller.h"
#include "content/public/browser/render_view_host.h"
@@ -168,11 +169,12 @@ void VrShell::SetUiState() {
ui_->SetURL(GURL());
ui_->SetLoading(false);
ui_->SetFullscreen(false);
- ui_->SetURL(GURL());
+ ui_->SetIncognito(false);
} else {
ui_->SetURL(web_contents_->GetVisibleURL());
ui_->SetLoading(web_contents_->IsLoading());
ui_->SetFullscreen(web_contents_->IsFullscreen());
+ ui_->SetIncognito(web_contents_->GetBrowserContext()->IsOffTheRecord());
}
}
« no previous file with comments | « chrome/browser/android/vr_shell/vr_gl_thread.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698