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

Side by Side Diff: chrome/browser/ui/views/network_profile_bubble_view.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) 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 "base/macros.h" 5 #include "base/macros.h"
6 #include "chrome/browser/profiles/profile.h" 6 #include "chrome/browser/profiles/profile.h"
7 #include "chrome/browser/ui/browser.h" 7 #include "chrome/browser/ui/browser.h"
8 #include "chrome/browser/ui/layout_constants.h" 8 #include "chrome/browser/ui/layout_constants.h"
9 #include "chrome/browser/ui/network_profile_bubble.h" 9 #include "chrome/browser/ui/network_profile_bubble.h"
10 #include "chrome/browser/ui/views/frame/browser_view.h" 10 #include "chrome/browser/ui/views/frame/browser_view.h"
11 #include "chrome/browser/ui/views/toolbar/app_menu_button.h" 11 #include "chrome/browser/ui/views/toolbar/app_menu_button.h"
12 #include "chrome/browser/ui/views/toolbar/toolbar_view.h" 12 #include "chrome/browser/ui/views/toolbar/toolbar_view.h"
13 #include "chrome/common/pref_names.h" 13 #include "chrome/common/pref_names.h"
14 #include "chrome/grit/chromium_strings.h" 14 #include "chrome/grit/chromium_strings.h"
15 #include "chrome/grit/generated_resources.h" 15 #include "chrome/grit/generated_resources.h"
16 #include "components/prefs/pref_service.h" 16 #include "components/prefs/pref_service.h"
17 #include "grit/components_strings.h" 17 #include "components/strings/grit/components_strings.h"
18 #include "ui/base/l10n/l10n_util.h" 18 #include "ui/base/l10n/l10n_util.h"
19 #include "ui/views/bubble/bubble_dialog_delegate.h" 19 #include "ui/views/bubble/bubble_dialog_delegate.h"
20 #include "ui/views/controls/label.h" 20 #include "ui/views/controls/label.h"
21 #include "ui/views/controls/link.h" 21 #include "ui/views/controls/link.h"
22 #include "ui/views/controls/link_listener.h" 22 #include "ui/views/controls/link_listener.h"
23 #include "ui/views/layout/fill_layout.h" 23 #include "ui/views/layout/fill_layout.h"
24 #include "ui/views/layout/layout_constants.h" 24 #include "ui/views/layout/layout_constants.h"
25 25
26 namespace { 26 namespace {
27 27
(...skipping 112 matching lines...) Expand 10 before | Expand all | Expand 10 after
140 140
141 // Mark the time of the last bubble and reduce the number of warnings left 141 // Mark the time of the last bubble and reduce the number of warnings left
142 // before the next silence period starts. 142 // before the next silence period starts.
143 PrefService* prefs = browser->profile()->GetPrefs(); 143 PrefService* prefs = browser->profile()->GetPrefs();
144 prefs->SetInt64(prefs::kNetworkProfileLastWarningTime, 144 prefs->SetInt64(prefs::kNetworkProfileLastWarningTime,
145 base::Time::Now().ToTimeT()); 145 base::Time::Now().ToTimeT());
146 int left_warnings = prefs->GetInteger(prefs::kNetworkProfileWarningsLeft); 146 int left_warnings = prefs->GetInteger(prefs::kNetworkProfileWarningsLeft);
147 if (left_warnings > 0) 147 if (left_warnings > 0)
148 prefs->SetInteger(prefs::kNetworkProfileWarningsLeft, --left_warnings); 148 prefs->SetInteger(prefs::kNetworkProfileWarningsLeft, --left_warnings);
149 } 149 }
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698