File tree Expand file tree Collapse file tree 1 file changed +8
-0
lines changed
chrome/browser/ui/ash/assistant Expand file tree Collapse file tree 1 file changed +8
-0
lines changed Original file line number Diff line number Diff line change 7
7
#include < utility>
8
8
9
9
#include " ash/public/interfaces/voice_interaction_controller.mojom.h"
10
+ #include " chrome/browser/chromeos/arc/arc_util.h"
10
11
#include " chrome/browser/chromeos/arc/voice_interaction/voice_interaction_controller_client.h"
12
+ #include " chrome/browser/profiles/profile_manager.h"
11
13
#include " chrome/browser/ui/ash/assistant/assistant_context_util.h"
12
14
#include " chrome/browser/ui/ash/assistant/assistant_image_downloader.h"
13
15
#include " chrome/browser/ui/ash/assistant/assistant_setup.h"
@@ -38,6 +40,12 @@ AssistantClient::~AssistantClient() {
38
40
}
39
41
40
42
void AssistantClient::MaybeInit (service_manager::Connector* connector) {
43
+ if (arc::IsAssistantAllowedForProfile (
44
+ ProfileManager::GetActiveUserProfile ()) !=
45
+ ash::mojom::AssistantAllowedState::ALLOWED) {
46
+ return ;
47
+ }
48
+
41
49
if (initialized_)
42
50
return ;
43
51
You can’t perform that action at this time.
0 commit comments