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

Side by Side Diff: chrome/browser/ui/android/content_settings/subresource_filter_infobar_delegate.cc

Issue 2276823003: Change many chrome/browser includes to use qualified paths. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: rebase Created 4 years, 3 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 (c) 2016 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2016 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/ui/android/content_settings/subresource_filter_infobar_ delegate.h" 5 #include "chrome/browser/ui/android/content_settings/subresource_filter_infobar_ delegate.h"
6 6
7 #include "base/strings/utf_string_conversions.h" 7 #include "base/strings/utf_string_conversions.h"
8 #include "chrome/browser/android/android_theme_resources.h" 8 #include "chrome/browser/android/android_theme_resources.h"
9 #include "chrome/browser/infobars/infobar_service.h" 9 #include "chrome/browser/infobars/infobar_service.h"
10 #include "chrome/grit/generated_resources.h" 10 #include "chrome/grit/generated_resources.h"
11 #include "components/infobars/core/infobar.h" 11 #include "components/infobars/core/infobar.h"
12 #include "components/strings/grit/components_strings.h"
12 #include "components/subresource_filter/content/browser/content_subresource_filt er_driver_factory.h" 13 #include "components/subresource_filter/content/browser/content_subresource_filt er_driver_factory.h"
13 #include "content/public/browser/web_contents.h" 14 #include "content/public/browser/web_contents.h"
14 #include "grit/components_strings.h"
15 #include "ui/base/l10n/l10n_util.h" 15 #include "ui/base/l10n/l10n_util.h"
16 16
17 // static 17 // static
18 void SubresourceFilterInfobarDelegate::Create(InfoBarService* infobar_service) { 18 void SubresourceFilterInfobarDelegate::Create(InfoBarService* infobar_service) {
19 infobar_service->AddInfoBar(infobar_service->CreateConfirmInfoBar( 19 infobar_service->AddInfoBar(infobar_service->CreateConfirmInfoBar(
20 std::unique_ptr<ConfirmInfoBarDelegate>( 20 std::unique_ptr<ConfirmInfoBarDelegate>(
21 new SubresourceFilterInfobarDelegate()))); 21 new SubresourceFilterInfobarDelegate())));
22 } 22 }
23 23
24 SubresourceFilterInfobarDelegate::SubresourceFilterInfobarDelegate() 24 SubresourceFilterInfobarDelegate::SubresourceFilterInfobarDelegate()
(...skipping 27 matching lines...) Expand all
52 } 52 }
53 53
54 bool SubresourceFilterInfobarDelegate::Cancel() { 54 bool SubresourceFilterInfobarDelegate::Cancel() {
55 content::WebContents* web_contents = 55 content::WebContents* web_contents =
56 InfoBarService::WebContentsFromInfoBar(infobar()); 56 InfoBarService::WebContentsFromInfoBar(infobar());
57 subresource_filter::ContentSubresourceFilterDriverFactory::FromWebContents( 57 subresource_filter::ContentSubresourceFilterDriverFactory::FromWebContents(
58 web_contents) 58 web_contents)
59 ->OnReloadRequested(); 59 ->OnReloadRequested();
60 return true; 60 return true;
61 } 61 }
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698