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

Unified Diff: chrome/browser/chromeos/cros/burn_library.cc

Issue 9200010: Revert 118659 - Some cleanup (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src/
Patch Set: Created 8 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
Index: chrome/browser/chromeos/cros/burn_library.cc
===================================================================
--- chrome/browser/chromeos/cros/burn_library.cc (revision 118659)
+++ chrome/browser/chromeos/cros/burn_library.cc (working copy)
@@ -1,11 +1,13 @@
-// Copyright (c) 2012 The Chromium Authors. All rights reserved.
+// Copyright (c) 2011 The Chromium Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
#include "chrome/browser/chromeos/cros/burn_library.h"
+#include <cstring>
+
#include "base/bind.h"
-#include "base/observer_list.h"
+#include "base/memory/linked_ptr.h"
#include "chrome/browser/chromeos/dbus/dbus_thread_manager.h"
#include "chrome/browser/chromeos/dbus/image_burner_client.h"
#include "chrome/browser/chromeos/disks/disk_mount_manager.h"
@@ -18,8 +20,6 @@
namespace {
-// Unzips |source_zip_file| and calls |callback| with the filename of
-// the unzipped image.
void UnzipImage(
const FilePath& source_zip_file,
const std::string& image_name,
@@ -35,6 +35,8 @@
BrowserThread::UI, FROM_HERE, base::Bind(callback, source_image_file));
}
+} // namespace
+
class BurnLibraryImpl : public BurnLibrary {
public:
BurnLibraryImpl();
@@ -200,8 +202,8 @@
void BurnLibraryImpl::BurnImage() {
DBusThreadManager::Get()->GetImageBurnerClient()->BurnImage(
- source_image_file_,
- target_file_path_,
+ source_image_file_.c_str(),
+ target_file_path_.c_str(),
base::Bind(&BurnLibraryImpl::OnBurnImageFail,
weak_ptr_factory_.GetWeakPtr()));
}
@@ -247,8 +249,6 @@
DISALLOW_COPY_AND_ASSIGN(BurnLibraryStubImpl);
};
-} // namespace
-
// static
BurnLibrary* BurnLibrary::GetImpl(bool stub) {
BurnLibrary* impl;
« no previous file with comments | « chrome/browser/chromeos/cros/burn_library.h ('k') | chrome/browser/ui/webui/chromeos/imageburner/imageburner_ui.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698