Ash HUD Tracing: Add "Start tracing" button to HUD.
This CL enables simple tracing control from Ash HUD.
Perfetto trace is always saved to /tmp/ash_trace.dat
(hard-coded file name).
DD: https://goto.google.com/ash-tracing
Bug: 1111854
Test: browser_tests --gtest_filter='All/AshHUDLoginTest.AshHUDVerifyTracing/*'
Change-Id: I14a00d2652bb97aa830f194baddfc77164aa4ebc
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/2597749
Reviewed-by: Dirk Pranke <[email protected]>
Reviewed-by: Mitsuru Oshima <[email protected]>
Reviewed-by: Sami Kyöstilä <[email protected]>
Commit-Queue: Alexander Alekseev <[email protected]>
Cr-Commit-Position: refs/heads/master@{#879106}
diff --git a/ash/shell_delegate.h b/ash/shell_delegate.h
index 6d63a36..f923691 100644
--- a/ash/shell_delegate.h
+++ b/ash/shell_delegate.h
@@ -10,6 +10,7 @@
#include "ash/ash_export.h"
#include "base/callback.h"
+#include "base/files/file_path.h"
#include "chromeos/services/multidevice_setup/public/mojom/multidevice_setup.mojom-forward.h"
#include "mojo/public/cpp/bindings/pending_receiver.h"
#include "services/device/public/mojom/bluetooth_system.mojom-forward.h"
@@ -115,6 +116,13 @@
virtual void StartUiDevTools() {}
virtual void StopUiDevTools() {}
virtual int GetUiDevToolsPort() const;
+
+ // Returns true if Chrome was started with --disable-logging-redirect option.
+ virtual bool IsLoggingRedirectDisabled() const = 0;
+
+ // Returns empty path is user session has not started yet, or path to the
+ // primary user Downloads folder if user has already logged in.
+ virtual base::FilePath GetPrimaryUserDownloadsFolder() const = 0;
};
} // namespace ash