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

Side by Side Diff: chrome/browser/chromeos/attestation/platform_verification_dialog.cc

Issue 2225343002: Navigation: move RestoreType and ReloadType into a separate file (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 2013 The Chromium Authors. All rights reserved. 1 // Copyright 2013 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/attestation/platform_verification_dialog.h" 5 #include "chrome/browser/chromeos/attestation/platform_verification_dialog.h"
6 6
7 #include <stddef.h> 7 #include <stddef.h>
8 8
9 #include "base/strings/utf_string_conversions.h" 9 #include "base/strings/utf_string_conversions.h"
10 #include "chrome/browser/profiles/profile.h" 10 #include "chrome/browser/profiles/profile.h"
(...skipping 134 matching lines...) Expand 10 before | Expand all | Expand 10 after
145 profile, learn_more_url, ui::PAGE_TRANSITION_LINK); 145 profile, learn_more_url, ui::PAGE_TRANSITION_LINK);
146 params.disposition = WindowOpenDisposition::SINGLETON_TAB; 146 params.disposition = WindowOpenDisposition::SINGLETON_TAB;
147 chrome::Navigate(&params); 147 chrome::Navigate(&params);
148 } else { 148 } else {
149 chrome::ShowSingletonTab(browser, learn_more_url); 149 chrome::ShowSingletonTab(browser, learn_more_url);
150 } 150 }
151 } 151 }
152 152
153 void PlatformVerificationDialog::DidStartNavigationToPendingEntry( 153 void PlatformVerificationDialog::DidStartNavigationToPendingEntry(
154 const GURL& url, 154 const GURL& url,
155 content::NavigationController::ReloadType reload_type) { 155 content::ReloadType reload_type) {
156 views::Widget* widget = GetWidget(); 156 views::Widget* widget = GetWidget();
157 if (widget) 157 if (widget)
158 widget->Close(); 158 widget->Close();
159 } 159 }
160 160
161 } // namespace attestation 161 } // namespace attestation
162 } // namespace chromeos 162 } // namespace chromeos
OLDNEW
« no previous file with comments | « chrome/browser/chromeos/attestation/platform_verification_dialog.h ('k') | chrome/browser/devtools/devtools_ui_bindings.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698