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

Side by Side Diff: chrome/browser/android/webapps/add_to_homescreen_data_fetcher.cc

Issue 2691263002: Revert of Remove header dependencies from sequence_checker.h to sequenced_worker_pool.h (Closed)
Patch Set: Created 3 years, 10 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
OLDNEW
1 // Copyright 2015 The Chromium Authors. All rights reserved. 1 // Copyright 2015 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/android/webapps/add_to_homescreen_data_fetcher.h" 5 #include "chrome/browser/android/webapps/add_to_homescreen_data_fetcher.h"
6 6
7 #include <vector> 7 #include <vector>
8 8
9 #include "base/bind.h" 9 #include "base/bind.h"
10 #include "base/callback.h" 10 #include "base/callback.h"
11 #include "base/location.h" 11 #include "base/location.h"
12 #include "base/strings/string16.h" 12 #include "base/strings/string16.h"
13 #include "base/threading/sequenced_worker_pool.h"
14 #include "chrome/browser/android/offline_pages/offline_page_utils.h" 13 #include "chrome/browser/android/offline_pages/offline_page_utils.h"
15 #include "chrome/browser/android/shortcut_helper.h" 14 #include "chrome/browser/android/shortcut_helper.h"
16 #include "chrome/browser/android/webapk/webapk_web_manifest_checker.h" 15 #include "chrome/browser/android/webapk/webapk_web_manifest_checker.h"
17 #include "chrome/browser/favicon/favicon_service_factory.h" 16 #include "chrome/browser/favicon/favicon_service_factory.h"
18 #include "chrome/browser/installable/installable_manager.h" 17 #include "chrome/browser/installable/installable_manager.h"
19 #include "chrome/browser/manifest/manifest_icon_selector.h" 18 #include "chrome/browser/manifest/manifest_icon_selector.h"
20 #include "chrome/browser/profiles/profile.h" 19 #include "chrome/browser/profiles/profile.h"
21 #include "chrome/common/chrome_constants.h" 20 #include "chrome/common/chrome_constants.h"
22 #include "chrome/common/render_messages.h" 21 #include "chrome/common/render_messages.h"
23 #include "chrome/common/web_application_info.h" 22 #include "chrome/common/web_application_info.h"
(...skipping 309 matching lines...) Expand 10 before | Expand all | Expand 10 after
333 void AddToHomescreenDataFetcher::NotifyObserver(const SkBitmap& primary_icon) { 332 void AddToHomescreenDataFetcher::NotifyObserver(const SkBitmap& primary_icon) {
334 DCHECK_CURRENTLY_ON(content::BrowserThread::UI); 333 DCHECK_CURRENTLY_ON(content::BrowserThread::UI);
335 if (!web_contents() || !weak_observer_ || is_icon_saved_) 334 if (!web_contents() || !weak_observer_ || is_icon_saved_)
336 return; 335 return;
337 336
338 is_icon_saved_ = true; 337 is_icon_saved_ = true;
339 primary_icon_ = primary_icon; 338 primary_icon_ = primary_icon;
340 is_ready_ = true; 339 is_ready_ = true;
341 weak_observer_->OnDataAvailable(shortcut_info_, primary_icon_, badge_icon_); 340 weak_observer_->OnDataAvailable(shortcut_info_, primary_icon_, badge_icon_);
342 } 341 }
OLDNEW
« no previous file with comments | « chrome/browser/android/shortcut_helper.cc ('k') | chrome/browser/android/webapps/add_to_homescreen_manager.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698