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

Side by Side Diff: chrome/browser/chromeos/policy/consumer_management_notifier.cc

Issue 1381633002: Cleanup: IWYU for browser_navigator.h and browser_navigator_params.h. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: rebase, fix merge conflict Created 5 years, 2 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 2014 The Chromium Authors. All rights reserved. 1 // Copyright 2014 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/chromeos/policy/consumer_management_notifier.h" 5 #include "chrome/browser/chromeos/policy/consumer_management_notifier.h"
6 6
7 #include <string> 7 #include <string>
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/logging.h" 11 #include "base/logging.h"
12 #include "base/strings/string16.h" 12 #include "base/strings/string16.h"
13 #include "base/strings/utf_string_conversions.h" 13 #include "base/strings/utf_string_conversions.h"
14 #include "chrome/browser/browser_process.h" 14 #include "chrome/browser/browser_process.h"
15 #include "chrome/browser/chromeos/policy/consumer_management_stage.h" 15 #include "chrome/browser/chromeos/policy/consumer_management_stage.h"
16 #include "chrome/browser/notifications/notification.h" 16 #include "chrome/browser/notifications/notification.h"
17 #include "chrome/browser/notifications/notification_delegate.h" 17 #include "chrome/browser/notifications/notification_delegate.h"
18 #include "chrome/browser/notifications/notification_ui_manager.h" 18 #include "chrome/browser/notifications/notification_ui_manager.h"
19 #include "chrome/browser/ui/browser_navigator.h" 19 #include "chrome/browser/ui/browser_navigator.h"
20 #include "chrome/browser/ui/browser_navigator_params.h"
20 #include "chrome/common/url_constants.h" 21 #include "chrome/common/url_constants.h"
21 #include "grit/generated_resources.h" 22 #include "grit/generated_resources.h"
22 #include "grit/theme_resources.h" 23 #include "grit/theme_resources.h"
23 #include "ui/base/l10n/l10n_util.h" 24 #include "ui/base/l10n/l10n_util.h"
24 #include "ui/base/page_transition_types.h" 25 #include "ui/base/page_transition_types.h"
25 #include "ui/base/resource/resource_bundle.h" 26 #include "ui/base/resource/resource_bundle.h"
26 #include "ui/base/window_open_disposition.h" 27 #include "ui/base/window_open_disposition.h"
27 #include "ui/message_center/notification_types.h" 28 #include "ui/message_center/notification_types.h"
28 #include "ui/message_center/notifier_settings.h" 29 #include "ui/message_center/notifier_settings.h"
29 #include "url/gurl.h" 30 #include "url/gurl.h"
(...skipping 159 matching lines...) Expand 10 before | Expand all | Expand 10 after
189 void ConsumerManagementNotifier::TryAgain() const { 190 void ConsumerManagementNotifier::TryAgain() const {
190 const GURL base_url(chrome::kChromeUISettingsURL); 191 const GURL base_url(chrome::kChromeUISettingsURL);
191 const GURL url = base_url.Resolve(kConsumerManagementOverlay); 192 const GURL url = base_url.Resolve(kConsumerManagementOverlay);
192 193
193 chrome::NavigateParams params(profile_, url, ui::PAGE_TRANSITION_LINK); 194 chrome::NavigateParams params(profile_, url, ui::PAGE_TRANSITION_LINK);
194 params.disposition = NEW_FOREGROUND_TAB; 195 params.disposition = NEW_FOREGROUND_TAB;
195 chrome::Navigate(&params); 196 chrome::Navigate(&params);
196 } 197 }
197 198
198 } // namespace policy 199 } // namespace policy
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698