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

Unified Diff: src/main.cc

Issue 6395007: cashew: gmock integration (Closed) Base URL: ssh://git@gitrw.chromium.org:9222/cashew.git@master
Patch Set: Created 9 years, 11 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « src/device_mock.h ('k') | src/service.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: src/main.cc
diff --git a/src/main.cc b/src/main.cc
index 6019a285e378b14c7916e77a05352511ec5930fa..572969fcb4c99334920d746d06f667b5892eb10f 100644
--- a/src/main.cc
+++ b/src/main.cc
@@ -1,4 +1,4 @@
-// Copyright (c) 2010 The Chromium OS Authors. All rights reserved.
+// Copyright (c) 2010, 2011 The Chromium OS Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
@@ -126,7 +126,7 @@ int main(int argc, char *argv[]) {
DLOG(INFO) << "creating service manager";
DBus::Connection client_conn = DBus::Connection::SystemBus();
client_conn.set_timeout(cashew::kDBusConnectionTimeoutMilliseconds);
- cashew::service_manager = new(std::nothrow) cashew::ServiceManager(
+ cashew::service_manager = cashew::ServiceManager::NewServiceManager(
client_conn, cashew::main_loop);
if (cashew::service_manager == NULL) {
LOG(ERROR) << "couldn't create service manager";
« no previous file with comments | « src/device_mock.h ('k') | src/service.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698