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

Unified Diff: chrome/browser/chromeos/login/helper.cc

Issue 2794493002: Add AuthPolicyLoginHelper (Closed)
Patch Set: Update after review Created 3 years, 8 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 | « chrome/browser/chromeos/login/helper.h ('k') | chrome/browser/chromeos/login/login_browsertest.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/browser/chromeos/login/helper.cc
diff --git a/chrome/browser/chromeos/login/helper.cc b/chrome/browser/chromeos/login/helper.cc
index 18baedf21d4799d6b13d73be3d986acbdf6bace3..0020fc0710891aa09a01f923acbab3c8117e4242 100644
--- a/chrome/browser/chromeos/login/helper.cc
+++ b/chrome/browser/chromeos/login/helper.cc
@@ -86,23 +86,6 @@ content::StoragePartition* GetPartition(content::WebContents* embedder,
: nullptr;
}
-base::ScopedFD GetDataReadPipe(const std::string& data) {
- int pipe_fds[2];
- if (!base::CreateLocalNonBlockingPipe(pipe_fds)) {
- DLOG(ERROR) << "Failed to create pipe";
- return base::ScopedFD();
- }
- base::ScopedFD pipe_read_end(pipe_fds[0]);
- base::ScopedFD pipe_write_end(pipe_fds[1]);
-
- if (!base::WriteFileDescriptor(pipe_write_end.get(), data.c_str(),
- data.size())) {
- DLOG(ERROR) << "Failed to write to pipe";
- return base::ScopedFD();
- }
- return pipe_read_end;
-}
-
} // namespace
gfx::Rect CalculateScreenBounds(const gfx::Size& size) {
@@ -262,14 +245,6 @@ net::URLRequestContextGetter* GetSigninContext() {
return signin_partition->GetURLRequestContext();
}
-void GetPipeReadEnd(const std::string& data,
- const OnPipeReadyCallback& callback) {
- base::PostTaskWithTraitsAndReplyWithResult(
- FROM_HERE, base::TaskTraits().MayBlock().WithPriority(
- base::TaskPriority::BACKGROUND),
- base::Bind(&GetDataReadPipe, data), callback);
-}
-
} // namespace login
} // namespace chromeos
« no previous file with comments | « chrome/browser/chromeos/login/helper.h ('k') | chrome/browser/chromeos/login/login_browsertest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698