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

Side by Side Diff: chrome/browser/chromeos/enterprise_extension_observer.cc

Issue 23694025: Remove calls to deprecated session_manager DBus methods (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Fix use-after-free in tests. Created 7 years, 3 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 unified diff | Download patch | Annotate | Revision Log
« no previous file with comments | « no previous file | chrome/browser/chromeos/login/screen_locker.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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
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
OLDNEW
« no previous file with comments | « no previous file | chrome/browser/chromeos/login/screen_locker.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698