Commit 88316bc2 authored by pkasting@chromium.org's avatar pkasting@chromium.org

Tiny comment tweaks for clarity.

BUG=none
TEST=none
Review URL: https://chromiumcodereview.appspot.com/9581028

git-svn-id: svn://svn.chromium.org/chrome/trunk/src@124768 0039d316-1c4b-4281-b951-d872f2087c98
parent 4609c3d0
...@@ -35,13 +35,14 @@ class ScopedURLFetcherFactory : public base::NonThreadSafe { ...@@ -35,13 +35,14 @@ class ScopedURLFetcherFactory : public base::NonThreadSafe {
// the callback method when appropriate. In this way it's easy to mock a // the callback method when appropriate. In this way it's easy to mock a
// URLFetcher. // URLFetcher.
// Typical usage: // Typical usage:
// // TestURLFetcher requires a MessageLoop: // // TestURLFetcher requires a MessageLoop.
// MessageLoopForUI message_loop; // MessageLoop message_loop;
// // And io_thread to release URLRequestContextGetter in URLFetcher::Core. // // And an IO thread to release URLRequestContextGetter in URLFetcher::Core.
// BrowserThreadImpl io_thread(BrowserThread::IO, &message_loop); // BrowserThreadImpl io_thread(BrowserThread::IO, &message_loop);
// // Create factory (it automatically sets itself as URLFetcher's factory). // // Create factory (it automatically sets itself as URLFetcher's factory).
// TestURLFetcherFactory factory; // TestURLFetcherFactory factory;
// // Do something that triggers creation of a URLFetcher. // // Do something that triggers creation of a URLFetcher.
// ...
// TestURLFetcher* fetcher = factory.GetFetcherByID(expected_id); // TestURLFetcher* fetcher = factory.GetFetcherByID(expected_id);
// DCHECK(fetcher); // DCHECK(fetcher);
// // Notify delegate with whatever data you want. // // Notify delegate with whatever data you want.
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment