Commit 5bfa7b35 authored by dcheng's avatar dcheng Committed by Commit bot

Local discovery fixups for scoped_refptr operator T* removal.

BUG=110610

Review URL: https://codereview.chromium.org/513283002

Cr-Commit-Position: refs/heads/master@{#292436}
parent 0363f2c6
...@@ -158,7 +158,7 @@ class PrivetLocalPrintOperation { ...@@ -158,7 +158,7 @@ class PrivetLocalPrintOperation {
// Required print data. MUST be called before calling |Start()|. // Required print data. MUST be called before calling |Start()|.
virtual void SetData(base::RefCountedBytes* data) = 0; virtual void SetData(const scoped_refptr<base::RefCountedBytes>& data) = 0;
// Optional attributes for /submitdoc. Call before calling |Start()| // Optional attributes for /submitdoc. Call before calling |Start()|
// |ticket| should be in CJT format. // |ticket| should be in CJT format.
......
...@@ -782,7 +782,8 @@ void PrivetLocalPrintOperationImpl::OnNeedPrivetToken( ...@@ -782,7 +782,8 @@ void PrivetLocalPrintOperationImpl::OnNeedPrivetToken(
privet_client_->RefreshPrivetToken(callback); privet_client_->RefreshPrivetToken(callback);
} }
void PrivetLocalPrintOperationImpl::SetData(base::RefCountedBytes* data) { void PrivetLocalPrintOperationImpl::SetData(
const scoped_refptr<base::RefCountedBytes>& data) {
DCHECK(!started_); DCHECK(!started_);
data_ = data; data_ = data;
} }
......
...@@ -203,7 +203,8 @@ class PrivetLocalPrintOperationImpl ...@@ -203,7 +203,8 @@ class PrivetLocalPrintOperationImpl
virtual ~PrivetLocalPrintOperationImpl(); virtual ~PrivetLocalPrintOperationImpl();
virtual void Start() OVERRIDE; virtual void Start() OVERRIDE;
virtual void SetData(base::RefCountedBytes* data) OVERRIDE; virtual void SetData(
const scoped_refptr<base::RefCountedBytes>& data) OVERRIDE;
virtual void SetCapabilities(const std::string& capabilities) OVERRIDE; virtual void SetCapabilities(const std::string& capabilities) OVERRIDE;
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment