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

Side by Side Diff: chrome/browser/icon_loader.cc

Issue 1550593002: Switch to standard integer types in chrome/browser/, part 2 of 4. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 4 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
« no previous file with comments | « chrome/browser/icon_loader.h ('k') | chrome/browser/icon_loader_chromeos.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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/icon_loader.h" 5 #include "chrome/browser/icon_loader.h"
6 6
7 #include "base/basictypes.h"
8 #include "base/bind.h" 7 #include "base/bind.h"
9 #include "base/thread_task_runner_handle.h" 8 #include "base/thread_task_runner_handle.h"
10 #include "content/public/browser/browser_thread.h" 9 #include "content/public/browser/browser_thread.h"
11 10
12 using content::BrowserThread; 11 using content::BrowserThread;
13 12
14 IconLoader::IconLoader(const base::FilePath& file_path, 13 IconLoader::IconLoader(const base::FilePath& file_path,
15 IconSize size, 14 IconSize size,
16 Delegate* delegate) 15 Delegate* delegate)
17 : target_task_runner_(NULL), 16 : target_task_runner_(NULL),
(...skipping 23 matching lines...) Expand all
41 base::Bind(&IconLoader::ReadIcon, this)); 40 base::Bind(&IconLoader::ReadIcon, this));
42 } 41 }
43 } 42 }
44 43
45 void IconLoader::NotifyDelegate() { 44 void IconLoader::NotifyDelegate() {
46 // If the delegate takes ownership of the Image, release it from the scoped 45 // If the delegate takes ownership of the Image, release it from the scoped
47 // pointer. 46 // pointer.
48 if (delegate_->OnImageLoaded(this, image_.get(), group_)) 47 if (delegate_->OnImageLoaded(this, image_.get(), group_))
49 ignore_result(image_.release()); // Can't ignore return value. 48 ignore_result(image_.release()); // Can't ignore return value.
50 } 49 }
OLDNEW
« no previous file with comments | « chrome/browser/icon_loader.h ('k') | chrome/browser/icon_loader_chromeos.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698