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

Side by Side Diff: dbus_service.cc

Issue 4094001: AU: Provide a D-Bus API for changing the update track. (Closed) Base URL: ssh://git@gitrw.chromium.org:9222/update_engine.git
Patch Set: review comments Created 10 years, 1 month 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 | « dbus_service.h ('k') | update_engine.xml » ('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) 2010 The Chromium OS Authors. All rights reserved. 1 // Copyright (c) 2010 The Chromium OS 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 "update_engine/dbus_service.h" 5 #include "update_engine/dbus_service.h"
6 6
7 #include <string> 7 #include <string>
8 8
9 #include <base/logging.h> 9 #include <base/logging.h>
10 10
(...skipping 89 matching lines...) Expand 10 before | Expand all | Expand 10 after
100 100
101 gboolean update_engine_service_reboot_if_needed(UpdateEngineService* self, 101 gboolean update_engine_service_reboot_if_needed(UpdateEngineService* self,
102 GError **error) { 102 GError **error) {
103 if (!self->update_attempter_->RebootIfNeeded()) { 103 if (!self->update_attempter_->RebootIfNeeded()) {
104 *error = NULL; 104 *error = NULL;
105 return FALSE; 105 return FALSE;
106 } 106 }
107 return TRUE; 107 return TRUE;
108 } 108 }
109 109
110 gboolean update_engine_service_set_track(UpdateEngineService* self,
111 gchar* track,
112 GError **error) {
113 if (track) {
114 LOG(INFO) << "TODO: Setting track to: " << track;
115 }
116 return TRUE;
117 }
118
110 gboolean update_engine_service_emit_status_update( 119 gboolean update_engine_service_emit_status_update(
111 UpdateEngineService* self, 120 UpdateEngineService* self,
112 gint64 last_checked_time, 121 gint64 last_checked_time,
113 gdouble progress, 122 gdouble progress,
114 const gchar* current_operation, 123 const gchar* current_operation,
115 const gchar* new_version, 124 const gchar* new_version,
116 gint64 new_size) { 125 gint64 new_size) {
117 g_signal_emit(self, 126 g_signal_emit(self,
118 status_update_signal, 127 status_update_signal,
119 0, 128 0,
120 last_checked_time, 129 last_checked_time,
121 progress, 130 progress,
122 current_operation, 131 current_operation,
123 new_version, 132 new_version,
124 new_size); 133 new_size);
125 return TRUE; 134 return TRUE;
126 } 135 }
OLDNEW
« no previous file with comments | « dbus_service.h ('k') | update_engine.xml » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698