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

Side by Side Diff: chromeos/dbus/session_manager_client.cc

Issue 16950028: Move file_util::Delete to the base namespace (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 7 years, 5 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 | « chromeos/dbus/cros_disks_client.cc ('k') | cloud_print/service/win/installer.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 "chromeos/dbus/session_manager_client.h" 5 #include "chromeos/dbus/session_manager_client.h"
6 6
7 #include <map> 7 #include <map>
8 8
9 #include "base/bind.h" 9 #include "base/bind.h"
10 #include "base/callback.h" 10 #include "base/callback.h"
(...skipping 494 matching lines...) Expand 10 before | Expand all | Expand 10 after
505 // which does nothing. 505 // which does nothing.
506 class SessionManagerClientStubImpl : public SessionManagerClient { 506 class SessionManagerClientStubImpl : public SessionManagerClient {
507 public: 507 public:
508 SessionManagerClientStubImpl() { 508 SessionManagerClientStubImpl() {
509 // Make sure that there are no keys left over from a previous browser run. 509 // Make sure that there are no keys left over from a previous browser run.
510 base::FilePath user_policy_key_dir; 510 base::FilePath user_policy_key_dir;
511 if (PathService::Get(chromeos::DIR_USER_POLICY_KEYS, 511 if (PathService::Get(chromeos::DIR_USER_POLICY_KEYS,
512 &user_policy_key_dir)) { 512 &user_policy_key_dir)) {
513 base::WorkerPool::PostTask( 513 base::WorkerPool::PostTask(
514 FROM_HERE, 514 FROM_HERE,
515 base::Bind(base::IgnoreResult(&file_util::Delete), 515 base::Bind(base::IgnoreResult(&base::Delete),
516 user_policy_key_dir, true), 516 user_policy_key_dir, true),
517 false); 517 false);
518 } 518 }
519 } 519 }
520 virtual ~SessionManagerClientStubImpl() {} 520 virtual ~SessionManagerClientStubImpl() {}
521 521
522 // SessionManagerClient overrides. 522 // SessionManagerClient overrides.
523 virtual void AddObserver(Observer* observer) OVERRIDE { 523 virtual void AddObserver(Observer* observer) OVERRIDE {
524 observers_.AddObserver(observer); 524 observers_.AddObserver(observer);
525 } 525 }
(...skipping 114 matching lines...) Expand 10 before | Expand all | Expand 10 after
640 SessionManagerClient* SessionManagerClient::Create( 640 SessionManagerClient* SessionManagerClient::Create(
641 DBusClientImplementationType type, 641 DBusClientImplementationType type,
642 dbus::Bus* bus) { 642 dbus::Bus* bus) {
643 if (type == REAL_DBUS_CLIENT_IMPLEMENTATION) 643 if (type == REAL_DBUS_CLIENT_IMPLEMENTATION)
644 return new SessionManagerClientImpl(bus); 644 return new SessionManagerClientImpl(bus);
645 DCHECK_EQ(STUB_DBUS_CLIENT_IMPLEMENTATION, type); 645 DCHECK_EQ(STUB_DBUS_CLIENT_IMPLEMENTATION, type);
646 return new SessionManagerClientStubImpl(); 646 return new SessionManagerClientStubImpl();
647 } 647 }
648 648
649 } // namespace chromeos 649 } // namespace chromeos
OLDNEW
« no previous file with comments | « chromeos/dbus/cros_disks_client.cc ('k') | cloud_print/service/win/installer.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698