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

Side by Side Diff: chrome/browser/automation/automation_provider_observers.cc

Issue 12767006: [Cleanup] Remove StringPrintf from global namespace (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Rebase, once more Created 7 years, 9 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 (c) 2012 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2012 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/automation/automation_provider_observers.h" 5 #include "chrome/browser/automation/automation_provider_observers.h"
6 6
7 #include <deque> 7 #include <deque>
8 #include <string> 8 #include <string>
9 #include <vector> 9 #include <vector>
10 10
(...skipping 339 matching lines...) Expand 10 before | Expand all | Expand 10 after
350 AutomationMsg_NavigationResponseValues navigation_result) { 350 AutomationMsg_NavigationResponseValues navigation_result) {
351 if (automation_) { 351 if (automation_) {
352 if (use_json_interface_) { 352 if (use_json_interface_) {
353 if (navigation_result == AUTOMATION_MSG_NAVIGATION_SUCCESS) { 353 if (navigation_result == AUTOMATION_MSG_NAVIGATION_SUCCESS) {
354 DictionaryValue dict; 354 DictionaryValue dict;
355 dict.SetInteger("result", navigation_result); 355 dict.SetInteger("result", navigation_result);
356 AutomationJSONReply(automation_, reply_message_.release()).SendSuccess( 356 AutomationJSONReply(automation_, reply_message_.release()).SendSuccess(
357 &dict); 357 &dict);
358 } else { 358 } else {
359 AutomationJSONReply(automation_, reply_message_.release()).SendError( 359 AutomationJSONReply(automation_, reply_message_.release()).SendError(
360 StringPrintf("Navigation failed with error code=%d.", 360 base::StringPrintf("Navigation failed with error code=%d.",
361 navigation_result)); 361 navigation_result));
362 } 362 }
363 } else { 363 } else {
364 IPC::ParamTraits<int>::Write( 364 IPC::ParamTraits<int>::Write(
365 reply_message_.get(), navigation_result); 365 reply_message_.get(), navigation_result);
366 automation_->Send(reply_message_.release()); 366 automation_->Send(reply_message_.release());
367 } 367 }
368 } 368 }
369 369
370 delete this; 370 delete this;
371 } 371 }
(...skipping 2475 matching lines...) Expand 10 before | Expand all | Expand 10 after
2847 if (automation_) { 2847 if (automation_) {
2848 AutomationJSONReply(automation_, reply_message_.release()) 2848 AutomationJSONReply(automation_, reply_message_.release())
2849 .SendSuccess(NULL); 2849 .SendSuccess(NULL);
2850 } 2850 }
2851 delete this; 2851 delete this;
2852 } 2852 }
2853 } else { 2853 } else {
2854 NOTREACHED(); 2854 NOTREACHED();
2855 } 2855 }
2856 } 2856 }
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698