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

Unified Diff: chrome/browser/extensions/api/cloud_print_private/cloud_print_private_api.cc

Issue 11778097: Revert revision 176015 (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src/
Patch Set: Created 7 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/extensions/api/cloud_print_private/cloud_print_private_api.cc
===================================================================
--- chrome/browser/extensions/api/cloud_print_private/cloud_print_private_api.cc (revision 176052)
+++ chrome/browser/extensions/api/cloud_print_private/cloud_print_private_api.cc (working copy)
@@ -31,16 +31,14 @@
instance_ = NULL;
}
-CloudPrintPrivateSetupConnectorFunction::
- CloudPrintPrivateSetupConnectorFunction() {
+CloudPrintSetupConnectorFunction::CloudPrintSetupConnectorFunction() {
}
-CloudPrintPrivateSetupConnectorFunction::
- ~CloudPrintPrivateSetupConnectorFunction() {
+CloudPrintSetupConnectorFunction::~CloudPrintSetupConnectorFunction() {
}
-bool CloudPrintPrivateSetupConnectorFunction::RunImpl() {
+bool CloudPrintSetupConnectorFunction::RunImpl() {
using extensions::api::cloud_print_private::SetupConnector::Params;
scoped_ptr<Params> params(Params::Create(*args_));
if (CloudPrintTestsDelegate::instance()) {
@@ -62,13 +60,13 @@
return true;
}
-CloudPrintPrivateGetHostNameFunction::CloudPrintPrivateGetHostNameFunction() {
+CloudPrintGetHostNameFunction::CloudPrintGetHostNameFunction() {
}
-CloudPrintPrivateGetHostNameFunction::~CloudPrintPrivateGetHostNameFunction() {
+CloudPrintGetHostNameFunction::~CloudPrintGetHostNameFunction() {
}
-bool CloudPrintPrivateGetHostNameFunction::RunImpl() {
+bool CloudPrintGetHostNameFunction::RunImpl() {
SetResult(Value::CreateStringValue(
CloudPrintTestsDelegate::instance() ?
CloudPrintTestsDelegate::instance()->GetHostName() :
@@ -77,19 +75,19 @@
return true;
}
-CloudPrintPrivateGetPrintersFunction::CloudPrintPrivateGetPrintersFunction() {
+CloudPrintGetPrintersFunction::CloudPrintGetPrintersFunction() {
}
-CloudPrintPrivateGetPrintersFunction::~CloudPrintPrivateGetPrintersFunction() {
+CloudPrintGetPrintersFunction::~CloudPrintGetPrintersFunction() {
}
-void CloudPrintPrivateGetPrintersFunction::ReturnResult(
+void CloudPrintGetPrintersFunction::ReturnResult(
const base::ListValue* printers) {
SetResult(printers->DeepCopy());
SendResponse(true);
}
-void CloudPrintPrivateGetPrintersFunction::CollectPrinters() {
+void CloudPrintGetPrintersFunction::CollectPrinters() {
scoped_ptr<base::ListValue> result(new base::ListValue());
if (CloudPrintTestsDelegate::instance()) {
std::vector<std::string> printers =
@@ -106,14 +104,14 @@
result->Append(Value::CreateStringValue(printers[i].printer_name));
}
content::BrowserThread::PostTask(content::BrowserThread::UI, FROM_HERE,
- base::Bind(&CloudPrintPrivateGetPrintersFunction::ReturnResult, this,
+ base::Bind(&CloudPrintGetPrintersFunction::ReturnResult, this,
base::Owned(result.release())));
}
-bool CloudPrintPrivateGetPrintersFunction::RunImpl() {
+bool CloudPrintGetPrintersFunction::RunImpl() {
content::BrowserThread::GetBlockingPool()->PostTask(FROM_HERE,
- base::Bind(&CloudPrintPrivateGetPrintersFunction::CollectPrinters, this));
+ base::Bind(&CloudPrintGetPrintersFunction::CollectPrinters, this));
return true;
}

Powered by Google App Engine
This is Rietveld 408576698