| OLD | NEW |
| 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/ui/views/network_profile_bubble_view.h" | 5 #include "chrome/browser/ui/views/network_profile_bubble_view.h" |
| 6 | 6 |
| 7 #include "chrome/browser/prefs/pref_service.h" | 7 #include "base/prefs/pref_service.h" |
| 8 #include "chrome/browser/profiles/profile.h" | 8 #include "chrome/browser/profiles/profile.h" |
| 9 #include "chrome/browser/ui/browser.h" | 9 #include "chrome/browser/ui/browser.h" |
| 10 #include "chrome/browser/ui/network_profile_bubble.h" | 10 #include "chrome/browser/ui/network_profile_bubble.h" |
| 11 #include "chrome/browser/ui/views/frame/browser_view.h" | 11 #include "chrome/browser/ui/views/frame/browser_view.h" |
| 12 #include "chrome/browser/ui/views/toolbar_view.h" | 12 #include "chrome/browser/ui/views/toolbar_view.h" |
| 13 #include "chrome/common/pref_names.h" | 13 #include "chrome/common/pref_names.h" |
| 14 #include "grit/chromium_strings.h" | 14 #include "grit/chromium_strings.h" |
| 15 #include "grit/generated_resources.h" | 15 #include "grit/generated_resources.h" |
| 16 #include "ui/base/l10n/l10n_util.h" | 16 #include "ui/base/l10n/l10n_util.h" |
| 17 #include "ui/views/controls/label.h" | 17 #include "ui/views/controls/label.h" |
| (...skipping 114 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 132 content::PAGE_TRANSITION_LINK, false); | 132 content::PAGE_TRANSITION_LINK, false); |
| 133 navigator_->OpenURL(params); | 133 navigator_->OpenURL(params); |
| 134 | 134 |
| 135 // If the user interacted with the bubble we don't reduce the number of | 135 // If the user interacted with the bubble we don't reduce the number of |
| 136 // warnings left. | 136 // warnings left. |
| 137 PrefService* prefs = profile_->GetPrefs(); | 137 PrefService* prefs = profile_->GetPrefs(); |
| 138 int left_warnings = prefs->GetInteger(prefs::kNetworkProfileWarningsLeft); | 138 int left_warnings = prefs->GetInteger(prefs::kNetworkProfileWarningsLeft); |
| 139 prefs->SetInteger(prefs::kNetworkProfileWarningsLeft, ++left_warnings); | 139 prefs->SetInteger(prefs::kNetworkProfileWarningsLeft, ++left_warnings); |
| 140 GetWidget()->Close(); | 140 GetWidget()->Close(); |
| 141 } | 141 } |
| OLD | NEW |