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

Side by Side Diff: blimp/client/core/session/assignment_source.cc

Issue 2157133003: Move blimp AssignmentSource to core (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@move-blimp-client-switches-to-core
Patch Set: Fix gn checks Created 4 years, 5 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 unified diff | Download patch
OLDNEW
1 // Copyright 2016 The Chromium Authors. All rights reserved. 1 // Copyright 2016 The Chromium 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 "blimp/client/session/assignment_source.h" 5 #include "blimp/client/core/session/assignment_source.h"
6 6
7 #include "base/bind.h" 7 #include "base/bind.h"
8 #include "base/callback_helpers.h" 8 #include "base/callback_helpers.h"
9 #include "base/command_line.h" 9 #include "base/command_line.h"
10 #include "base/files/file_util.h" 10 #include "base/files/file_util.h"
11 #include "base/json/json_reader.h" 11 #include "base/json/json_reader.h"
12 #include "base/json/json_writer.h" 12 #include "base/json/json_writer.h"
13 #include "base/location.h" 13 #include "base/location.h"
14 #include "base/memory/ref_counted.h" 14 #include "base/memory/ref_counted.h"
15 #include "base/numerics/safe_conversions.h" 15 #include "base/numerics/safe_conversions.h"
(...skipping 356 matching lines...) Expand 10 before | Expand all | Expand 10 after
372 } 372 }
373 373
374 void AssignmentSource::OnJsonParseError(const std::string& error) { 374 void AssignmentSource::OnJsonParseError(const std::string& error) {
375 DLOG(ERROR) << "Error while parsing assigner JSON: " << error; 375 DLOG(ERROR) << "Error while parsing assigner JSON: " << error;
376 base::ResetAndReturn(&callback_) 376 base::ResetAndReturn(&callback_)
377 .Run(AssignmentSource::Result::RESULT_BAD_RESPONSE, Assignment()); 377 .Run(AssignmentSource::Result::RESULT_BAD_RESPONSE, Assignment());
378 } 378 }
379 379
380 } // namespace client 380 } // namespace client
381 } // namespace blimp 381 } // namespace blimp
OLDNEW
« no previous file with comments | « blimp/client/core/session/assignment_source.h ('k') | blimp/client/core/session/assignment_source_unittest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698