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

Side by Side Diff: chrome/browser/chromeos/first_run/drive_first_run_controller.cc

Issue 15239002: Move Extension and PermissionsData to extensions/common. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: rebase Created 7 years, 1 month 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 | Annotate | Revision Log
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/first_run/drive_first_run_controller.h" 5 #include "chrome/browser/chromeos/first_run/drive_first_run_controller.h"
6 6
7 #include "ash/shell.h" 7 #include "ash/shell.h"
8 #include "ash/system/tray/system_tray_notifier.h" 8 #include "ash/system/tray/system_tray_notifier.h"
9 #include "base/callback.h" 9 #include "base/callback.h"
10 #include "base/memory/weak_ptr.h" 10 #include "base/memory/weak_ptr.h"
11 #include "base/message_loop/message_loop.h" 11 #include "base/message_loop/message_loop.h"
12 #include "base/strings/utf_string_conversions.h" 12 #include "base/strings/utf_string_conversions.h"
13 #include "chrome/browser/background/background_contents_service.h" 13 #include "chrome/browser/background/background_contents_service.h"
14 #include "chrome/browser/background/background_contents_service_factory.h" 14 #include "chrome/browser/background/background_contents_service_factory.h"
15 #include "chrome/browser/chrome_notification_types.h" 15 #include "chrome/browser/chrome_notification_types.h"
16 #include "chrome/browser/chromeos/login/user_manager.h" 16 #include "chrome/browser/chromeos/login/user_manager.h"
17 #include "chrome/browser/extensions/extension_service.h" 17 #include "chrome/browser/extensions/extension_service.h"
18 #include "chrome/browser/extensions/extension_system.h" 18 #include "chrome/browser/extensions/extension_system.h"
19 #include "chrome/browser/profiles/profile_manager.h" 19 #include "chrome/browser/profiles/profile_manager.h"
20 #include "chrome/browser/tab_contents/background_contents.h" 20 #include "chrome/browser/tab_contents/background_contents.h"
21 #include "chrome/common/extensions/extension.h"
22 #include "content/public/browser/browser_thread.h" 21 #include "content/public/browser/browser_thread.h"
23 #include "content/public/browser/navigation_controller.h" 22 #include "content/public/browser/navigation_controller.h"
24 #include "content/public/browser/notification_details.h" 23 #include "content/public/browser/notification_details.h"
25 #include "content/public/browser/notification_observer.h" 24 #include "content/public/browser/notification_observer.h"
26 #include "content/public/browser/notification_registrar.h" 25 #include "content/public/browser/notification_registrar.h"
27 #include "content/public/browser/notification_source.h" 26 #include "content/public/browser/notification_source.h"
28 #include "content/public/browser/notification_types.h" 27 #include "content/public/browser/notification_types.h"
29 #include "content/public/browser/site_instance.h" 28 #include "content/public/browser/site_instance.h"
30 #include "content/public/browser/web_contents.h" 29 #include "content/public/browser/web_contents.h"
31 #include "content/public/browser/web_contents_observer.h" 30 #include "content/public/browser/web_contents_observer.h"
31 #include "extensions/common/extension.h"
32 #include "url/gurl.h" 32 #include "url/gurl.h"
33 33
34 namespace chromeos { 34 namespace chromeos {
35 35
36 namespace { 36 namespace {
37 37
38 // The initial time to wait in seconds before starting the opt-in. 38 // The initial time to wait in seconds before starting the opt-in.
39 const int kInitialDelaySeconds = 180; 39 const int kInitialDelaySeconds = 180;
40 40
41 // Time to wait for Drive app background page to come up before giving up. 41 // Time to wait for Drive app background page to come up before giving up.
(...skipping 287 matching lines...) Expand 10 before | Expand all | Expand 10 after
329 } 329 }
330 330
331 void DriveFirstRunController::OnOfflineInit(bool success) { 331 void DriveFirstRunController::OnOfflineInit(bool success) {
332 DCHECK(content::BrowserThread::CurrentlyOn(content::BrowserThread::UI)); 332 DCHECK(content::BrowserThread::CurrentlyOn(content::BrowserThread::UI));
333 ash::Shell::GetInstance()->system_tray_notifier() 333 ash::Shell::GetInstance()->system_tray_notifier()
334 ->NotifyDriveOfflineEnabled(); 334 ->NotifyDriveOfflineEnabled();
335 CleanUp(); 335 CleanUp();
336 } 336 }
337 337
338 } // namespace chromeos 338 } // namespace chromeos
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698