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

Side by Side Diff: chrome/browser/extensions/extension_service.h

Issue 6250198: More out-of-lining of test code, along with a bunch of GMOCK objects. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Really fix the gyp files this time Created 9 years, 10 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 | Annotate | Revision Log
OLDNEW
1 // Copyright (c) 2011 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2011 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 #ifndef CHROME_BROWSER_EXTENSIONS_EXTENSION_SERVICE_H_ 5 #ifndef CHROME_BROWSER_EXTENSIONS_EXTENSION_SERVICE_H_
6 #define CHROME_BROWSER_EXTENSIONS_EXTENSION_SERVICE_H_ 6 #define CHROME_BROWSER_EXTENSIONS_EXTENSION_SERVICE_H_
7 #pragma once 7 #pragma once
8 8
9 #include <map> 9 #include <map>
10 #include <set> 10 #include <set>
(...skipping 359 matching lines...) Expand 10 before | Expand all | Expand 10 after
370 bool extensions_enabled() { return extensions_enabled_; } 370 bool extensions_enabled() { return extensions_enabled_; }
371 371
372 void set_show_extensions_prompts(bool enabled) { 372 void set_show_extensions_prompts(bool enabled) {
373 show_extensions_prompts_ = enabled; 373 show_extensions_prompts_ = enabled;
374 } 374 }
375 375
376 bool show_extensions_prompts() { 376 bool show_extensions_prompts() {
377 return show_extensions_prompts_; 377 return show_extensions_prompts_;
378 } 378 }
379 379
380 Profile* profile() { return profile_; } 380 virtual Profile* profile();
381 381
382 // Profile calls this when it is being destroyed so that we know not to call 382 // Profile calls this when it is being destroyed so that we know not to call
383 // it. 383 // it.
384 void DestroyingProfile(); 384 void DestroyingProfile();
385 385
386 virtual ExtensionPrefs* extension_prefs(); 386 virtual ExtensionPrefs* extension_prefs();
387 387
388 // Whether the extension service is ready. 388 // Whether the extension service is ready.
389 // TODO(skerner): Get rid of this method. crbug.com/63756 389 // TODO(skerner): Get rid of this method. crbug.com/63756
390 bool is_ready() { return ready_; } 390 bool is_ready() { return ready_; }
(...skipping 240 matching lines...) Expand 10 before | Expand all | Expand 10 after
631 FRIEND_TEST_ALL_PREFIXES(ExtensionServiceTest, 631 FRIEND_TEST_ALL_PREFIXES(ExtensionServiceTest,
632 UpdatePendingExtensionAlreadyInstalled); 632 UpdatePendingExtensionAlreadyInstalled);
633 FRIEND_TEST_ALL_PREFIXES(ExtensionServiceTest, 633 FRIEND_TEST_ALL_PREFIXES(ExtensionServiceTest,
634 InstallAppsWithUnlimtedStorage); 634 InstallAppsWithUnlimtedStorage);
635 FRIEND_TEST_ALL_PREFIXES(ExtensionServiceTest, 635 FRIEND_TEST_ALL_PREFIXES(ExtensionServiceTest,
636 InstallAppsAndCheckStorageProtection); 636 InstallAppsAndCheckStorageProtection);
637 DISALLOW_COPY_AND_ASSIGN(ExtensionService); 637 DISALLOW_COPY_AND_ASSIGN(ExtensionService);
638 }; 638 };
639 639
640 #endif // CHROME_BROWSER_EXTENSIONS_EXTENSION_SERVICE_H_ 640 #endif // CHROME_BROWSER_EXTENSIONS_EXTENSION_SERVICE_H_
OLDNEW
« no previous file with comments | « no previous file | chrome/browser/extensions/extension_service.cc » ('j') | chrome/test/testing_browser_process.h » ('J')

Powered by Google App Engine
This is Rietveld 408576698