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

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

Issue 2902043005: [vr] Add incognito coloring (Closed)
Patch Set: rebase 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
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 13ab589b1e10a6f2993ce3b085fcbf0776d51df3..80683fac2fd9d9f288ff6c5c016e37ebd44a66cb 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"
@@ -173,6 +174,7 @@ void VrShell::SetUiState() {
ui_->SetURL(web_contents_->GetVisibleURL());
ui_->SetLoading(web_contents_->IsLoading());
ui_->SetFullscreen(web_contents_->IsFullscreen());
+ ui_->SetIncognito(web_contents_->GetBrowserContext()->IsOffTheRecord());
cjgrant 2017/05/26 16:29:25 Shouldn't this be in the if() case above, setting
Ian Vollick 2017/05/27 00:30:18 Done.
}
}

Powered by Google App Engine
This is Rietveld 408576698