OLD | NEW |
1 // Copyright 2014 The Chromium Authors. All rights reserved. | 1 // Copyright 2014 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 "feedback_common.h" | 5 #include "components/feedback/feedback_common.h" |
6 | 6 |
7 #include "base/strings/string_util.h" | 7 #include "base/strings/string_util.h" |
8 #include "components/feedback/proto/common.pb.h" | 8 #include "components/feedback/proto/common.pb.h" |
9 #include "components/feedback/proto/dom.pb.h" | 9 #include "components/feedback/proto/dom.pb.h" |
10 #include "components/feedback/proto/extension.pb.h" | 10 #include "components/feedback/proto/extension.pb.h" |
11 #include "components/feedback/proto/math.pb.h" | 11 #include "components/feedback/proto/math.pb.h" |
12 | 12 |
13 namespace { | 13 namespace { |
14 | 14 |
15 const char kMultilineIndicatorString[] = "<multiline>\n"; | 15 const char kMultilineIndicatorString[] = "<multiline>\n"; |
(...skipping 189 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
205 | 205 |
206 *(screenshot.mutable_dimensions()) = dimensions; | 206 *(screenshot.mutable_dimensions()) = dimensions; |
207 screenshot.set_binary_content(*image()); | 207 screenshot.set_binary_content(*image()); |
208 | 208 |
209 *(feedback_data->mutable_screenshot()) = screenshot; | 209 *(feedback_data->mutable_screenshot()) = screenshot; |
210 } | 210 } |
211 | 211 |
212 if (category_tag().size()) | 212 if (category_tag().size()) |
213 feedback_data->set_bucket(category_tag()); | 213 feedback_data->set_bucket(category_tag()); |
214 } | 214 } |
OLD | NEW |