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

Side by Side Diff: chrome/browser/extensions/api/feedback_private/feedback_private_api.cc

Issue 830743003: Directly inline shared WebUI CSS declarations into the security and supervised user interstitials. (Closed) Base URL: https://chromium.googlesource.com/chromium/src@master
Patch Set: review Created 5 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 unified diff | Download patch
OLDNEW
1 // Copyright 2013 The Chromium Authors. All rights reserved. 1 // Copyright 2013 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 "chrome/browser/extensions/api/feedback_private/feedback_private_api.h" 5 #include "chrome/browser/extensions/api/feedback_private/feedback_private_api.h"
6 6
7 #include "base/lazy_instance.h" 7 #include "base/lazy_instance.h"
8 #include "base/memory/scoped_ptr.h" 8 #include "base/memory/scoped_ptr.h"
9 #include "base/strings/string_number_conversions.h" 9 #include "base/strings/string_number_conversions.h"
10 #include "base/strings/string_util.h" 10 #include "base/strings/string_util.h"
(...skipping 104 matching lines...) Expand 10 before | Expand all | Expand 10 after
115 SET_STRING("attach-file-to-big", IDS_FEEDBACK_ATTACH_FILE_TO_BIG); 115 SET_STRING("attach-file-to-big", IDS_FEEDBACK_ATTACH_FILE_TO_BIG);
116 SET_STRING("reading-file", IDS_FEEDBACK_READING_FILE); 116 SET_STRING("reading-file", IDS_FEEDBACK_READING_FILE);
117 SET_STRING("send-report", IDS_FEEDBACK_SEND_REPORT); 117 SET_STRING("send-report", IDS_FEEDBACK_SEND_REPORT);
118 SET_STRING("cancel", IDS_CANCEL); 118 SET_STRING("cancel", IDS_CANCEL);
119 SET_STRING("no-description", IDS_FEEDBACK_NO_DESCRIPTION); 119 SET_STRING("no-description", IDS_FEEDBACK_NO_DESCRIPTION);
120 SET_STRING("privacy-note", IDS_FEEDBACK_PRIVACY_NOTE); 120 SET_STRING("privacy-note", IDS_FEEDBACK_PRIVACY_NOTE);
121 SET_STRING("performance-trace", 121 SET_STRING("performance-trace",
122 IDS_FEEDBACK_INCLUDE_PERFORMANCE_TRACE_CHECKBOX); 122 IDS_FEEDBACK_INCLUDE_PERFORMANCE_TRACE_CHECKBOX);
123 #undef SET_STRING 123 #undef SET_STRING
124 124
125 webui::SetFontAndTextDirection(dict); 125 webui::SetTextDirection(dict);
126 126
127 if (test_callback_ && !test_callback_->is_null()) 127 if (test_callback_ && !test_callback_->is_null())
128 test_callback_->Run(); 128 test_callback_->Run();
129 129
130 return true; 130 return true;
131 } 131 }
132 132
133 bool FeedbackPrivateGetUserEmailFunction::RunSync() { 133 bool FeedbackPrivateGetUserEmailFunction::RunSync() {
134 FeedbackService* service = 134 FeedbackService* service =
135 FeedbackPrivateAPI::GetFactoryInstance()->Get(GetProfile())->GetService(); 135 FeedbackPrivateAPI::GetFactoryInstance()->Get(GetProfile())->GetService();
(...skipping 92 matching lines...) Expand 10 before | Expand all | Expand 10 after
228 228
229 void FeedbackPrivateSendFeedbackFunction::OnCompleted( 229 void FeedbackPrivateSendFeedbackFunction::OnCompleted(
230 bool success) { 230 bool success) {
231 results_ = feedback_private::SendFeedback::Results::Create( 231 results_ = feedback_private::SendFeedback::Results::Create(
232 success ? feedback_private::STATUS_SUCCESS : 232 success ? feedback_private::STATUS_SUCCESS :
233 feedback_private::STATUS_DELAYED); 233 feedback_private::STATUS_DELAYED);
234 SendResponse(true); 234 SendResponse(true);
235 } 235 }
236 236
237 } // namespace extensions 237 } // namespace extensions
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698