OLD | NEW |
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. |
2 // Use of this source code is governed by a BSD-style license that can be | 2 // Use of this source code is governed by a BSD-style license that can be |
3 // found in the LICENSE file. | 3 // found in the LICENSE file. |
4 | 4 |
5 #include "chrome/browser/chromeos/enterprise_extension_observer.h" | 5 #include "chrome/browser/chromeos/enterprise_extension_observer.h" |
6 | 6 |
7 #include "base/bind.h" | 7 #include "base/bind.h" |
8 #include "base/file_util.h" | 8 #include "base/file_util.h" |
9 #include "chrome/browser/chrome_notification_types.h" | 9 #include "chrome/browser/chrome_notification_types.h" |
10 #include "chrome/browser/profiles/profile.h" | 10 #include "chrome/browser/profiles/profile.h" |
(...skipping 43 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
54 DCHECK(BrowserThread::CurrentlyOn(BrowserThread::FILE)); | 54 DCHECK(BrowserThread::CurrentlyOn(BrowserThread::FILE)); |
55 if (base::PathExists( | 55 if (base::PathExists( |
56 path.Append(FILE_PATH_LITERAL("isa-cros-policy")))) { | 56 path.Append(FILE_PATH_LITERAL("isa-cros-policy")))) { |
57 BrowserThread::PostTask( | 57 BrowserThread::PostTask( |
58 BrowserThread::UI, | 58 BrowserThread::UI, |
59 FROM_HERE, | 59 FROM_HERE, |
60 base::Bind(&EnterpriseExtensionObserver::NotifyEntd)); | 60 base::Bind(&EnterpriseExtensionObserver::NotifyEntd)); |
61 } | 61 } |
62 } | 62 } |
63 | 63 |
64 // static | |
65 void EnterpriseExtensionObserver::NotifyEntd() { | 64 void EnterpriseExtensionObserver::NotifyEntd() { |
66 DCHECK(BrowserThread::CurrentlyOn(BrowserThread::UI)); | 65 NOTREACHED(); |
67 DBusThreadManager::Get()->GetSessionManagerClient()->RestartEntd(); | |
68 } | 66 } |
69 | 67 |
70 } // namespace chromeos | 68 } // namespace chromeos |
OLD | NEW |