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

Side by Side Diff: chrome/browser/extensions/api/tab_capture/tab_capture_apitest.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 "base/stringprintf.h" 5 #include "base/stringprintf.h"
6 #include "chrome/browser/extensions/extension_apitest.h" 6 #include "chrome/browser/extensions/extension_apitest.h"
7 #include "chrome/browser/extensions/extension_test_message_listener.h" 7 #include "chrome/browser/extensions/extension_test_message_listener.h"
8 #include "chrome/common/chrome_version_info.h" 8 #include "chrome/common/chrome_version_info.h"
9 #include "chrome/common/extensions/feature_switch.h" 9 #include "chrome/common/extensions/feature_switch.h"
10 #include "chrome/common/extensions/features/feature.h" 10 #include "chrome/common/extensions/features/feature.h"
(...skipping 50 matching lines...) Expand 10 before | Expand all | Expand 10 after
61 61
62 content::OpenURLParams params(GURL("about:blank"), content::Referrer(), 62 content::OpenURLParams params(GURL("about:blank"), content::Referrer(),
63 NEW_FOREGROUND_TAB, 63 NEW_FOREGROUND_TAB,
64 content::PAGE_TRANSITION_LINK, false); 64 content::PAGE_TRANSITION_LINK, false);
65 content::WebContents* web_contents = browser()->OpenURL(params); 65 content::WebContents* web_contents = browser()->OpenURL(params);
66 66
67 content::RenderViewHost* const rvh = web_contents->GetRenderViewHost(); 67 content::RenderViewHost* const rvh = web_contents->GetRenderViewHost();
68 int render_process_id = rvh->GetProcess()->GetID(); 68 int render_process_id = rvh->GetProcess()->GetID();
69 int routing_id = rvh->GetRoutingID(); 69 int routing_id = rvh->GetRoutingID();
70 70
71 listener.Reply(StringPrintf("%i:%i", render_process_id, routing_id)); 71 listener.Reply(base::StringPrintf("%i:%i", render_process_id, routing_id));
72 72
73 ResultCatcher catcher; 73 ResultCatcher catcher;
74 catcher.RestrictToProfile(browser()->profile()); 74 catcher.RestrictToProfile(browser()->profile());
75 EXPECT_TRUE(catcher.GetNextResult()) << catcher.message(); 75 EXPECT_TRUE(catcher.GetNextResult()) << catcher.message();
76 } 76 }
77 77
78 } // namespace chrome 78 } // namespace chrome
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698