| 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/network_profile_bubble.h" | 5 #include "chrome/browser/ui/network_profile_bubble.h" |
| 6 | 6 |
| 7 #include <windows.h> | 7 #include <windows.h> |
| 8 #include <stdint.h> | 8 #include <stdint.h> |
| 9 | 9 |
| 10 #include <wtsapi32.h> | 10 #include <wtsapi32.h> |
| 11 // Make sure we link the wtsapi lib file in. | |
| 12 #pragma comment(lib, "wtsapi32.lib") | |
| 13 | 11 |
| 14 #include "base/bind.h" | 12 #include "base/bind.h" |
| 15 #include "base/command_line.h" | 13 #include "base/command_line.h" |
| 16 #include "base/files/file_path.h" | 14 #include "base/files/file_path.h" |
| 17 #include "base/files/file_util.h" | 15 #include "base/files/file_util.h" |
| 18 #include "base/logging.h" | 16 #include "base/logging.h" |
| 19 #include "base/metrics/histogram.h" | 17 #include "base/metrics/histogram.h" |
| 20 #include "base/time/time.h" | 18 #include "base/time/time.h" |
| 21 #include "chrome/browser/browser_process.h" | 19 #include "chrome/browser/browser_process.h" |
| 22 #include "chrome/browser/profiles/profile.h" | 20 #include "chrome/browser/profiles/profile.h" |
| (...skipping 151 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 174 | 172 |
| 175 // static | 173 // static |
| 176 void NetworkProfileBubble::NotifyNetworkProfileDetected() { | 174 void NetworkProfileBubble::NotifyNetworkProfileDetected() { |
| 177 Browser* browser = chrome::FindLastActive(); | 175 Browser* browser = chrome::FindLastActive(); |
| 178 | 176 |
| 179 if (browser) | 177 if (browser) |
| 180 ShowNotification(browser); | 178 ShowNotification(browser); |
| 181 else | 179 else |
| 182 BrowserList::AddObserver(new BrowserListObserver()); | 180 BrowserList::AddObserver(new BrowserListObserver()); |
| 183 } | 181 } |
| OLD | NEW |