[M120 Migration]Fix for crash during chrome exit
[platform/framework/web/chromium-efl.git] / chrome / browser / process_singleton_fuchsia.cc
1 // Copyright 2021 The Chromium Authors
2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file.
4
5 #include "chrome/browser/process_singleton.h"
6
7 // On Fuchsia, we assume that the Component Framework ensures that only a single
8 // Chrome component instance will run against a particular data-directory.
9 // This file contains a stubbed-out ProcessSingleton implementation. :)
10 //
11 // In future we will need to support a mechanism for URL launch attempts to
12 // be handled by a running Chrome instance, e.g. by registering the instance as
13 // the Runner for HTTP[S] component URLs.
14 //
15 // TODO(crbug.com/1370080): Implement these methods as appropriate.
16
17 ProcessSingleton::ProcessSingleton(
18     const base::FilePath& user_data_dir,
19     const NotificationCallback& notification_callback) {}
20
21 ProcessSingleton::~ProcessSingleton() {
22   DCHECK_CALLED_ON_VALID_SEQUENCE(sequence_checker_);
23 }
24
25 ProcessSingleton::NotifyResult ProcessSingleton::NotifyOtherProcess() {
26   NOTIMPLEMENTED_LOG_ONCE();
27   return PROCESS_NONE;
28 }
29
30 ProcessSingleton::NotifyResult ProcessSingleton::NotifyOtherProcessOrCreate() {
31   NOTIMPLEMENTED_LOG_ONCE();
32   return PROCESS_NONE;
33 }
34
35 bool ProcessSingleton::Create() {
36   NOTIMPLEMENTED_LOG_ONCE();
37   return true;
38 }
39
40 void ProcessSingleton::StartWatching() {
41   NOTIMPLEMENTED_LOG_ONCE();
42 }
43
44 void ProcessSingleton::Cleanup() {
45   NOTIMPLEMENTED_LOG_ONCE();
46 }