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

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

Issue 106433007: Update some uses of Value in chrome/browser to use the base:: namespace. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: fix Created 6 years, 12 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 | Annotate | Revision Log
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 80 matching lines...) Expand 10 before | Expand all | Expand 10 after
91 ExtensionSystem::Get(profile_)->event_router()->DispatchEventToExtension( 91 ExtensionSystem::Get(profile_)->event_router()->DispatchEventToExtension(
92 kFeedbackExtensionId, 92 kFeedbackExtensionId,
93 event.Pass()); 93 event.Pass());
94 } 94 }
95 } 95 }
96 96
97 // static 97 // static
98 base::Closure* FeedbackPrivateGetStringsFunction::test_callback_ = NULL; 98 base::Closure* FeedbackPrivateGetStringsFunction::test_callback_ = NULL;
99 99
100 bool FeedbackPrivateGetStringsFunction::RunImpl() { 100 bool FeedbackPrivateGetStringsFunction::RunImpl() {
101 DictionaryValue* dict = new DictionaryValue(); 101 base::DictionaryValue* dict = new base::DictionaryValue();
102 SetResult(dict); 102 SetResult(dict);
103 103
104 #define SET_STRING(id, idr) \ 104 #define SET_STRING(id, idr) \
105 dict->SetString(id, l10n_util::GetStringUTF16(idr)) 105 dict->SetString(id, l10n_util::GetStringUTF16(idr))
106 SET_STRING("page-title", IDS_FEEDBACK_REPORT_PAGE_TITLE); 106 SET_STRING("page-title", IDS_FEEDBACK_REPORT_PAGE_TITLE);
107 SET_STRING("page-url", IDS_FEEDBACK_REPORT_URL_LABEL); 107 SET_STRING("page-url", IDS_FEEDBACK_REPORT_URL_LABEL);
108 SET_STRING("screenshot", IDS_FEEDBACK_SCREENSHOT_LABEL); 108 SET_STRING("screenshot", IDS_FEEDBACK_SCREENSHOT_LABEL);
109 SET_STRING("user-email", IDS_FEEDBACK_USER_EMAIL_LABEL); 109 SET_STRING("user-email", IDS_FEEDBACK_USER_EMAIL_LABEL);
110 #if defined(OS_CHROMEOS) 110 #if defined(OS_CHROMEOS)
111 SET_STRING("sys-info", 111 SET_STRING("sys-info",
(...skipping 126 matching lines...) Expand 10 before | Expand all | Expand 10 after
238 238
239 void FeedbackPrivateSendFeedbackFunction::OnCompleted( 239 void FeedbackPrivateSendFeedbackFunction::OnCompleted(
240 bool success) { 240 bool success) {
241 results_ = feedback_private::SendFeedback::Results::Create( 241 results_ = feedback_private::SendFeedback::Results::Create(
242 success ? feedback_private::STATUS_SUCCESS : 242 success ? feedback_private::STATUS_SUCCESS :
243 feedback_private::STATUS_DELAYED); 243 feedback_private::STATUS_DELAYED);
244 SendResponse(true); 244 SendResponse(true);
245 } 245 }
246 246
247 } // namespace extensions 247 } // namespace extensions
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698